This is directly from N1570 the final version of the C11 revision:
Type: Posts; User: nonpuz
This is directly from N1570 the final version of the C11 revision:
I was referring to the C11 draft, _NOT_ the microsoft garbage.
Yeah, it was replaced by a "safer" alternative gets_s which takes a size parameter.
I have to disagree with your initial assessment regarding gets() being as unsafe as strcpy() is. You can never,...
Again, I have to disagree with you there. While I'll agree that both methods may have drawbacks, lets see which error is easier to spot:
/* You can visually see that b is longer then a */
char...
I'd like to make 2 small but important points here.
First, it's a bad idea to specify the string length when initializing an array with a string literal, Example:
char ar[5] = "Hello George";...