strncpy
Bill Poser
poser at csli.Stanford.EDU
Sat Jan 6 09:06:49 AEST 1990
In response to my claim that:
All other representations of arbitrary length strings
require similar overhead, e.g. a character count in the
descriptor.
in article <0000006 at ki4pv.UUCP> tanner at ki4pv.UUCP (Dr. T. Andrews) writes:
>I beg to differ. By defining storage fields of a certain size, and
>using strncpy() to manipulate them, "strings" of that size may be
>handled without character counts in the descriptors.
This is irrelevant. Fixed size strings are not arbitrary length strings
Please read messages before responding to them.
He continues:
>That they don't teach people about character arrays of known size
>at Stanford is purely a local teaching decision and therefore not
>a suitable subject for outside debate.
There is of course no basis for the inference that I do not know
about fixed size strings. Dr. Andrews seems to know this, as he
writes:
at Stanford, where strncpy() and on [sic] buffers of
known size are an important subject of research; we expect
Mr. Poser's paper on the same shortly.
In any case, I have no idea what is taught
on this subject at Stanford, as I am neither a student nor a member of the
Computer Science faculty. I first began to use C at Bell Labs.
More information about the Comp.lang.c
mailing list