Manipulating byte strings (UNIX domain)
Aside from the address-related database routines, there are
several other routines available in the run-time library which
are intended mostly to simplify manipulation of names and addresses.
The following table summarizes the routines for manipulating
variable length byte strings.
| C Run-Time Routines | 
|---|
| Call | Synopsis | 
| memcmp(s1,s2,n) | compare n bytes of strings s1 and s2 | 
| memcpy(s2,s1,n) | copy n bytes from s1 to s2 | 
| memset(base,'\0',n) | zero-fill n bytes starting at base | 
Next topic: 
Error handling in programming (UNIX domain)
Previous topic: 
Networking library routines for UNIX sockets
© 2003 Caldera International, Inc.  All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003