Mail Archives: pgcc/1998/07/12/21:43:34
Hello,
Forgive me my criticism, but after setting up linux i now try to compile
diep for unix, and i get some weird results trying to compile with the
standard gcc in redhat 5.1 (gcc --version gives: 2.7.2.3 ):
first of all, why doesn't gcc have a predefined function like msvc++ have
called:
max() and min()?
Further i get completely upset from next warning gnu c++ gives.
This is my function:
int ReturnFloepWindow(char *sOut) {
printf("%s\n",sOut);
gets(sOut);
return(true);
}
In the DOS interface of my program this is a function that does all kind of
graphical stuff, therefore this function might seem stupid to you, but it's
evident what it does.
Now gcc gives next warning:
"the 'gets' function is dangerous and should not be used."
What the #$$##$ does gcc think it's saying to me, am i not allowed to
get a string from the keyboard, is there a bug in this function?
Why?
Greetings,
Vincent
- Raw text -