C declarations

Doug Gwyn (VLD/VMB) gwyn at Brl-Vld.ARPA
Sun Feb 10 10:00:06 AEST 1985


There is an established C and UNIX convention that character strings
are NUL-terminated (the alternative is to keep a length count with
every string).  General char[] arrays do not necessarily have to
follow this convention.  There are str*() routines for manipulating
NUL-terminated strings and mem*() routines for handling general
char[] arrays.  This is not really an accident, since what is nice
for one usage is not so nice for the other and vice-versa.



More information about the Comp.lang.c mailing list