Aaaaaaah, thank you guys!!!
I can't believe it was so simple, I've been banging my head on the desk for about an hour trying to figure why this simple code doesn't work. Single quotes, who knew?
It works now.
And I will look into strcat() and memset() as well!