/in/foo.c: In function 'main':
/in/foo.c:5:1: warning: 'gets' is deprecated [-Wdeprecated-declarations]
{ char s1[N],s2[N]; int m1,m2; gets(s1); gets(s2); m1=Count(s1); m2=Count(s2); printf("%d %d",m1,m2); return 0; }
^
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.c:5:1: warning: 'gets' is deprecated [-Wdeprecated-declarations]
{ char s1[N],s2[N]; int m1,m2; gets(s1); gets(s2); m1=Count(s1); m2=Count(s2); printf("%d %d",m1,m2); return 0; }
^
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/tmp/ccqCu13k.o: In function `main':
foo.c:(.text.startup+0x15): warning: the `gets' function is dangerous and should not be used.