Remove debug line
This commit is contained in:
parent
0faafd22a3
commit
7ff570b1a8
1 changed files with 0 additions and 1 deletions
1
neo.c
1
neo.c
|
@ -147,7 +147,6 @@ int main(void)
|
||||||
/* Read from stdin (pipe) */
|
/* Read from stdin (pipe) */
|
||||||
char buf[MAX_LINE];
|
char buf[MAX_LINE];
|
||||||
while (count < MAX_LINES && fgets(buf, sizeof(buf), stdin)) {
|
while (count < MAX_LINES && fgets(buf, sizeof(buf), stdin)) {
|
||||||
printf("buf: %s\n", buf);
|
|
||||||
size_t len = strlen(buf);
|
size_t len = strlen(buf);
|
||||||
if (len && buf[len - 1] == '\n') buf[len - 1] = '\0';
|
if (len && buf[len - 1] == '\n') buf[len - 1] = '\0';
|
||||||
lines[count++] = strdup(buf);
|
lines[count++] = strdup(buf);
|
||||||
|
|
Loading…
Reference in a new issue