Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

bcopy(3) [osf1 man page]

bcopy(3)						     Library Functions Manual							  bcopy(3)

NAME
bcopy, bcmp, bzero - Perform memory operations LIBRARY
Standard C Library (libc) SYNOPSIS
#include <strings.h> void bcopy( const void *source, void *destination, size_t length); int bcmp( const void *string1, const void *string2, size_t length); void bzero( void *string, size_t length); The following function definitions do not conform to current standards and are supported only for backward compatibility: #include <string.h> void bcopy( const char *source, char *destination, int length); int bcmp( const char *string1, const char *string2, int length); void bzero( char *string, int length); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: bcopy(), bcmp(), bzero(): XSH5.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Points to the original string for the bcopy() function. Points to the destination string for the bcopy() function. Specifies the byte string to be compared to the string2 parameter by the bcmp() function. Specifies the byte string to be compared to the string1 parameter by the bcmp() function. Specifies the length (in bytes) of the string. DESCRIPTION
The bcopy(), bcmp(), and bzero() functions operate on variable length strings of bytes. Unlike the string functions, they do not check for null bytes. The bcopy() function copies the value of the length parameter in bytes from the string in the source parameter to the string in the desti- nation parameter. The bcmp() function compares the byte string in the string1 parameter against the byte string of the string2 parameter, returning a 0 (zero) value if the two strings are identical and a nonzero value otherwise. The bzero() function nulls the string in the string parameter, for the value of the length parameter in bytes. NOTES
[Tru64 UNIX] The bcopy() function is similar to the memcpy() function except that the first two parameters are reversed. RELATED INFORMATION
Functions: memccpy(3), memcpy(3), string(3), swab(3) Standards: standards(5) delim off bcopy(3)

Check Out this Related Man Page

strspn(3)						     Library Functions Manual							 strspn(3)

NAME
strcspn, strspn - Returns length of initial segment of string LIBRARY
Standard C Library (libc.so, libc.a) SYNOPSIS
#include <string.h> size_t strcspn( const char *s1, const char *s2); size_t strspn( const char *s1, const char *s2); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: strcspn(), strspn(): XSH4.2 Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Points to a character string being checked for an initial segment. Points to a string containing a set of bytes that define the initial segment. DESCRIPTION
The strspn() function computes the length of the maximum initial segment of the string pointed to by the s1 parameter, which consists entirely of bytes from the string pointed to by the s2 parameter. The strcspn() function computes the byte length of the maximum initial segment of the string pointed to by the s1 parameter, which consists entirely of bytes that are not from the string pointed to by the s2 parameter. The strspn() and strcspn() functions treat the s2 parameter as a series of bytes; these functions do not treat a multibyte character as a single unit but rather as a series of separate bytes. There are no equivalent functions for multibyte character strings. The wcsspn() and wcscspn() functions provide the same functionality for wide character strings. RETURN VALUES
Upon successful completion, the strcspn(), and strspn() functions return the length of the string segment. [Tru64 UNIX] On error, a value of -1 cast to size_t is returned. RELATED INFORMATION
Functions: string(3), wcsspn(3)/wcscspn(3) Standards: standards(5) delim off strspn(3)
Man Page