isleadbyte(), isleadbyte_l()

tests if character is first byte of multibyte character 

Function


SYNOPSIS

#include <ctype.h>

int isleadbyte(int c);

int isleadbyte_l(int c, locale_t locale);


DESCRIPTION

The isleadbyte() function tests whether the specified character is the first byte of a multibyte character.


PARAMETERS

c 

Is any integer value.

locale 

Is a locale_t perhaps returned by newlocale() or LC_GLOBAL_LOCALE or 0 for the current thread locale set with uselocale().


RETURN VALUES

The isleadbyte() and isleadbyte_l() functions return non-zero if c is the first byte of a multibyte character; otherwise, it returns zero.


CONFORMANCE

PTC MKS Toolkit UNIX APIs extension.


MULTITHREAD SAFETY LEVEL

MT-Safe, with exceptions.

The function isleadbyte() is MT-Safe as long as no thread calls setlocale() while this function is executing.

The function isleadbyte_l() is MT-Safe as long as no thread calls freelocale() on locale while this function is executing.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
isalnum(), isalnum_l(), isalpha(), isalpha_l(), isascii(), isascii_l(), iscntrl(), iscntrl_l(), isdigit(), isdigit_l(), isgraph(), isgraph_l(), islower(), islower_l(), isprint(), isprint_l(), ispunct(), ispunct_l(), isspace(), isspace_l(), isupper(), isupper_l(), isxdigit(), isxdigit_l(), xlocale()


PTC MKS Toolkit 10.3 Documentation Build 39.