ambiguous ?

Doug Gwyn gwyn at smoke.BRL.MIL
Sat Oct 28 03:22:57 AEST 1989


In article <14115 at lanl.gov> jlg at lanl.gov (Jim Giles) writes:
>I don't see how.  C character strings are null terminated rather
>that keeping the length of the string explicitly.

Both approaches have their relative advantages and disadvantages.
Efficiency depends very much on the specific hardware support;
some architectures work quite well with delimited strings and
others work better with byte counts.

At least with C you have the option of implementing your own counted
strings if you prefer them.



More information about the Comp.lang.c mailing list