|
Is there a good/recommended place to get a rundown on deprecated C stuff, ideally with tutorials for what people use now? I'm working through Sams Teach Yourself C in 21 Days (Sixth Edition), and it's obviously a bit old (2003), but it's the first book whose vibe I've really taken to so I want to stick with it. My issue so far is that there are a lot of examples using gets(), and gcc screams at me about it every time I compile an example problem.
|
# ¿ Feb 7, 2024 20:59 |
|
|
# ¿ May 17, 2024 14:46 |
|
ultrafilter posted:I don't think there's any official list but the general rule is that any function which can write an arbitrary amount of data to memory is unsafe. There's usually a newer function with a similar name that does the same thing but takes an additional parameter that caps the length of the data to write. gets has been replaced with gets_s as documented here. Appreciate this, thanks!
|
# ¿ Feb 7, 2024 22:12 |
|
roomforthetuna posted:Today I learned <=> is a C++ operator.
|
# ¿ Feb 13, 2024 17:32 |