sprintf作字符串拼接的問題分析

調試以前寫的一段代碼,其中使用sprintf作字符串拼接:sql sprintf(sql, "select * from TEST_TABLE");安全 ......ide sprintf(sql, "%s%s", sql, " where (RELY_TYPE='S')");函數   使用auto tools生成Makfile,編譯,運行出錯:執行完第二句sprintf後sql=「 where
相關文章
相關標籤/搜索