P
pereges
I'm getting a warning on my linux gcc compiler:
/tmp/ccXgHa9s.o(.text+0x48): In function `main':
: warning: the `gets' function is dangerous and should not be used.
And here's where I used gets:
#include "common.h" //common.h includes string.h
....
....
int main(void)
{
char zf_name[50];
....
printf("Enter the name of the file\n");
gets(zf_name);
...
return 0;
}
/tmp/ccXgHa9s.o(.text+0x48): In function `main':
: warning: the `gets' function is dangerous and should not be used.
And here's where I used gets:
#include "common.h" //common.h includes string.h
....
....
int main(void)
{
char zf_name[50];
....
printf("Enter the name of the file\n");
gets(zf_name);
...
return 0;
}