C 語言標準函數庫分類導覽- string.h memset(). string.h 的函數memset() 將某一記憶體區段的前n 個字元全部設定為某一字元。 以下程式將字串s 全部設成'n' ?
pydoing.blogspot.com