/in/foo.c: In function 'main':
/in/foo.c:5:1: warning: 'gets' is deprecated [-Wdeprecated-declarations]
{ char s1[N],s2[N]; int len1,len2; gets(s1); gets(s2); len1=Length(s1); len2=Length(s2); printf("%d %d",len1,len2); 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 len1,len2; gets(s1); gets(s2); len1=Length(s1); len2=Length(s2); printf("%d %d",len1,len2); 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/ccbCF97T.o: In function `main':
foo.c:(.text.startup+0xb): warning: the `gets' function is dangerous and should not be used.