feat: update structure
This commit is contained in:
13
cs2106/labs/lab2/part1/talk.c
Normal file
13
cs2106/labs/lab2/part1/talk.c
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#define BUF_SIZE 128
|
||||
|
||||
int main() {
|
||||
char input[128];
|
||||
char *ret;
|
||||
while(!feof(stdin)) {
|
||||
ret = fgets(input, BUF_SIZE - 1, stdin);
|
||||
if(ret != NULL)
|
||||
printf("This is what I read: %s\n", input);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user