If you want to get a single line of stdin in C, getline() is the go-to ... to the size of the buffer, and a pointer to the input stream.
確定! 回上一頁