#include <stdio.h>
#define TRUE 1
#define FALSE 0
void main ()
{
	char c;
	while(TRUE){
		getchar(c);
		if (c == " " || c == "\t"){
			printf("\n");
		}
		putchar(c);
	}
}
Программа выводит каждый символ с новой строки. gcc же ругается:
main.c: In function ‘main’:
main.c:10:3: error: too many arguments to function ‘getchar’
   getchar(c);
   ^~~~~~~
In file included from main.c:1:0:
/usr/include/stdio.h:540:12: note: declared here
 extern int getchar (void);
            ^~~~~~~
main.c:12:9: warning: comparison between pointer and integer
   if (c == " " || c == "\t"){
         ^~
main.c:12:21: warning: comparison between pointer and integer
   if (c == " " || c == "\t"){
                     ^~
ЧЯДНТ?











