bcopy man page on SmartOS

Man page or keyword search:  
man Server   16655 pages
apropos Keyword Search (all sections)
Output format
SmartOS logo
[printable version]

BSTRING(3C)							   BSTRING(3C)

       bstring, bcopy, bcmp, bzero - memory operations

       #include <strings.h>

       void bcopy(const void *s1, void *s2, size_t n);

       int bcmp(const void *s1, const void *s2, size_t n);

       void bzero(void *s, size_t n);

       The   bcopy(),  bcmp(), and bzero() functions operate as efficiently as
       possible on memory areas (arrays of bytes bounded by a count, not  ter‐
       minated by a null character).  They do not check for  the  overflow  of
       any receiving memory area.  These functions are	similar	 to  the  mem‐
       cpy(),  memcmp(),  and  memset()	 functions described on the memory(3C)
       manual page.

       The bcopy() function copies n bytes from memory area s1 to s2.  Copying
       between objects that overlap will take place correctly.

       The  bcmp()  function  compares	the  first  n  bytes of its arguments,
       returning 0 if they are identical and 1 otherwise. The bcmp()  function
       always returns 0 when n is 0.

       The bzero() function sets the first n bytes in memory area s to 0.

       The  bcopy()  function  takes  parameters backwards from memcmp().  See

       See attributes(5) for descriptions of the following attributes:

       │Interface Stability │ Standard	      │
       │MT-Level	    │ MT-Safe	      │

       memory(3C), attributes(5), standards(5)

				 Apr 15, 2002			   BSTRING(3C)

List of man pages available for SmartOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net