Query: copystr
OS: osf1
Section: 9r
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
copystr(9r) copystr(9r)NAMEcopystr - General: Copies a null-terminated character string with a specified limitSYNOPSISint copystr( char *s1, char *s2, u_int maxlength, u_int *ncopiedaddr );ARGUMENTSSpecifies a pointer to a string (an array of characters terminated by a null character). Specifies a pointer to a buffer of at least maxlength characters. Specifies the maximum number of characters to copy. Specifies the address of an integer to receive the number of copied characters.DESCRIPTIONThe copystr routine copies string s1 to the buffer pointed to by s2. The routine stops after copying a null character or after copying maxlength characters, whichever comes first. The s2 buffer is not padded with null characters to maxlength. The copystr routine returns the number of characters copied in the location pointed to by ncopiedaddr. Note that the character size is 1 byte.RETURN VALUESUpon successful completion, copystr returns the value 0 (zero). Otherwise, it can return the following error: The string length, s1, exceeds the maximum number of characters, maxlength.SEE ALSORoutines: bcopy(9r), blkclr(9r), ovbcopy(9r), strcpy(9r), strncpy(9r) copystr(9r)
Related Man Pages |
---|
bcopy(9r) - osf1 |
strncpy(9r) - osf1 |
copy(9) - osx |
copyin(9) - osx |
copystr(9) - osx |
Similar Topics in the Unix Linux Community |
---|
How to remove null characters from file? |
removing characters |
write string of characters to file |
check number of character |
Another binary manipulation thread. |