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.

@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.