For example,
early C compilers
and linkers
used 8-character fixed-length strings
in their symbol tables,
and many versions of
Unix
still use 14-character filenames.
A related quirk of strncpy's
is that it pads short strings with multiple \0's,
out to the specified length;
this
can allow
more efficient string comparisons
since they
can
blindly compare n bytes
without also looking
for '\0'.
back
about this FAQ list
about eskimo
search
feedback
copyright
Hosted by