You could remove the "\0" from the names. A C string is implicitly null terminated.