strncpy

jackm%ardc at sri-unix.UUCP jackm%ardc at sri-unix.UUCP
Fri Feb 24 06:02:14 AEST 1984


From:      Jack Moskowitz (PAD) <jackm at ardc>

Strncpy may be used to manipulate characters within strings rather
than the whole string. Eg. changing the string abcdef to abxxef. 
You would not want to null terminate after the xx in this case.



More information about the Comp.unix mailing list