Query: bstring
OS: minix
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
BSTRING(3) Library Functions Manual BSTRING(3)NAMEbstring, bcopy, bcmp, bzero, ffs - bit and byte string operationsSYNOPSIS#include <sys/types.h> #include <string.h> #include <unistd.h> void bcopy(const void *src, void *dst, size_t length) int bcmp(const void *b1, const void *b2, size_t length) void bzero(void *dst, size_t length) int ffs(int i)DESCRIPTIONThe functions bcopy, bcmp, and bzero operate on variable length strings of bytes. They do not check for null bytes as the routines in string(3) do. Bcopy copies length bytes from string src to the string dst. Bcmp compares byte string b1 against byte string b2, returning zero if they are identical, non-zero otherwise. Both strings are assumed to be length bytes long. Bzero places length 0 bytes in the string b1. Ffs find the first bit set in the argument passed it and returns the index of that bit. Bits are numbered starting at 1. A return value of 0 indicates the value passed is zero.BUGSThe bcopy, bcmp, and bzero functions are obsolete; new code should use memmove, memcmp, and memset respectively. The bcopy routine takes parameters backwards from memcpy, memmove, and strcpy. 4.2 Berkeley Distribution May 15, 1985 BSTRING(3)
Related Man Pages |
---|
bstring(3) - mojave |
bcmp(3) - osf1 |
bstring(3) - plan9 |
bstring(3) - x11r4 |
bstring(3) - v7 |
Similar Topics in the Unix Linux Community |
---|
Get the substring |
Substring using cut/awk/sed |
Filter uniq field values (non-substring) |
Date substring from a string |
Script Shell Extract substring |