beautypg.com

Isxdigit, Labs, Ldexp – Zilog Z8F0130 User Manual

Page 469: Isxdigit labs ldexp

background image

UM013037-1212

isxdigit

Zilog Developer Studio II – Z8 Encore!

User Manual

445

Example

int r;

char c='a';

r=isupper(c);

isxdigit

Tests for any hexadecimal digit '0' to '9' and 'A' to 'F'.

Synopsis

#include

int isxdigit(int c);

Example

int r;

char c='f';

r=isxdigit(c)

labs

Computes the absolute value of a long j.

Synopsis

#include

long labs(long j);

Example

long i=-193250;

long j

j=labs(i);

ldexp

Multiplies a floating-point number by an integral power of 2. A range error can occur.

Synopsis

#include

double ldexp(double x, int exp);

Returns

The value of x times 2 raised to the power of exp.