ISBINRY(3) BSD Programmer's Manual ISBINRY(3)NAMEisbinry - binary octet test
SYNOPSIS
#define _ALL_SOURCE
#include <ctype.h>
int
isbinry(int c);
DESCRIPTION
The isbinry() macro tests whether its argument is a binary octet, i.e. an
octet not used in encoding OPTU-8 text or the NUL byte. It is intended to
be used in ascii-vs-binary tests, e.g. in diff(1), grep(1), or similar
tools.
RETURN VALUES
The isbinry() macro returns zero if the character is potentially used in
encoding OPTU-8 text, non-zero otherwise. If the argument is not in the
range 0..255, the result is undefined.
SEE ALSOisascii(3), utf-8(7)STANDARDS
The isbinry() macro is a MirOS extension. A isbinry() function shall be
provided in libc with the same semantics as the macro.
HISTORYisbinry() first appeared in MirOS #10.
MirOS BSD #10-current August 2, 2008 1