BYTE C-3

NAME

clrb, cmpb, movb, filb - perform byte operations

SYNOPSIS

clrb (loc, length)

char *loc;

int length;

cmpb (p1, p2, length)

char *p1;

char *p2;

int length;

movb (dest, source, length)

char *dest;

char *source;

int length;

filb (s, c, n)

char *s;

char c;

int n;

DESCRIPTION

Clrb zeros length bytes, starting at the pointer loc.

Cmpb compares its arguments and returns an integer greater than, equal to or less than 0 according to whether p1 is lexicographically greater than, equal to or less than p2. Cmpb compares at most length bytes, but unlike strcmp(3), does not stop upon reaching a zero byte.

Movb copies length bytes from source to dest.

Filb sets n bytes starting at s to character c.

NOTES

Cmpb uses native character comparison that may be signed or unsigned depending on the C compiler on your system.