Follow

I thought when you allocate a string in C it's filled with \0. I don't know why I thought that. Makes no sense when you think about it.

· · Web · 3 · 0 · 0

@matrix use calloc() next time you need to allocate memory for a string, neat trick

Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.