0
What does gets() function do ?
3 Antworten
+ 13
gets() is a function used to get a line of input into a string variable. The function has already been deprecated, though.
+ 2
like Hatsy said it is depracated and is unsafe to use, u can get an overflow with it. Consider using fgets instead, you can give the size of the input as parameter to the function to prevent overflow.
+ 1
ok , thanx guys