A string in C is merely an array of characters. The length of a string is determined by a terminating null character: '\0' .
en.m.wikibooks.org