I would personally use fgets() (or some other library function such as readline() ) to read a string. fgets() does pretty much what your loop does without all ...
確定! 回上一頁