4
Contributors
4
Replies
5
Views
9 Years
Discussion Span
Last Post by ithelp
1

doesn't matter why -- gets() is a horrible function anyway. Use fgets() instead of gets(). And if you really want the source code for that standard C function then download the gnu compiler source code.

Votes + Comments
Agreed, but the source for gets() et al will be in libc, not the compiler itself
2

doesn't matter why -- gets() is a horrible function anyway.

Well maybe he wanted the source to improve the function and benefit C-programmers worldwide by inventing a failproof, idiotproof, fast-then-ever gets()-function :)

Or maybe you're just right.

Votes + Comments
lol
0

i need the code of funtion "gets" in class "string.h".
thanks a lot

Download compiler source code base and search for gets api.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.