fgets와 fputs
fgets() reads in at most one less than size characters from stream and stores them into the buffer pointed to by s. Reading stops after an EOF or a newline. If a newline is read, it is stored into the buffer. A terminating null byte (aq\0aq) is stored after the last character in the buffer. char *fgets(char *s, int size, FILE *stream); fgets는 다음 형태를 가지며, size -1 만큼 입력을 받아오게 된다. EOF 혹은 \n을 만나면 입력..
2019. 7. 26. 12:26