332
I got to avoid memory management for quite some time
(feddit.org)
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Without getting too critical of your code (congrats BTW), never use
strcpyinstead usestrlcpy.strcpywill happily allow you to create buffer overflows (a common challenge with C) which will cause your application to crash.You'll find more details here.
Good luck!
Thanks, I did not knew this. I always appreciate constructive criticism. I am quite new to C so theres a shit ton of stuff I have never done or dont even know about.
And understand when you can use them...
I've seen too much code following this advice blindly that just does something like
strncpy(dst, src, strlen(src))