you'll just have to introduce the memory model and what strings are before you can even start teaching!
-
-
-
No. You just abstain from teaching idiotically wrong idioms.
-
Teach printf, then snprintf as the way to store result in a string. No string.h until advanced classes.
End of conversation
New conversation -
-
-
Figuring out the good sources of information can be hard, there are so many bad sources with quick solutions that seem to work ok.
-
who wants to submit an LLVM patch that makes it just segfault when it sees gets()
-
It looks like clang gives you a deprecated warning and on Linux at least you get a warning that it is dangerous: https://wandbox.org/permlink/nlfDvUeoeWwuqrAT … but I would support making it generate a trap like they do for dereferencing a null pointer: https://stackoverflow.com/a/26310534/1708801 …pic.twitter.com/TXPeEHcF7M
-
Should really mark it unavailable, with a deprecated alternative behind
#ifdef I_SWEAR_THAT_I_AM_UP_TO_NO_GOOD -
Does C11 leave "gets" reserved? If not I think this is a bug. Should allow
#pragma poison gets or similar.
End of conversation
New conversation -
-
-
C is okay if you permanently visualize the corresponding assembler code.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.