- #1
rambo3131
- 18
- 0
Hi,i have a question about C. (i use linux).The problem is: I will read arbitrary number of character lines from standard input.(not from a file). Size of the lines is also arbitrary. Lines are separated with new line character. . I must send EOF with CTRL-D from terminal.
I should allocate space for each line. Each line should be terminated with terminating null character ('\0').
After the last line, I should mark the end of the lines with a null pointer (NULL).
I don't want code,but some hints please please help me
I should allocate space for each line. Each line should be terminated with terminating null character ('\0').
After the last line, I should mark the end of the lines with a null pointer (NULL).
I don't want code,but some hints please please help me