beautypg.com

Labs function – Zilog Z80380 User Manual

Page 73

background image

UM004001-COR1103

4–9

Run Time Environment

Library Functions

Function

Test Condition

isalnum

Alphanumeric (‘A’-‘Z’, ‘a’-‘z’, or ‘0’-‘9’)

isalpha

Letter (‘A’-‘Z’ or ‘a’-‘z’)

iscntrl

Control character (0x00 - 0x1F or 0x7F)

isdigit

Digit (‘0’-‘9’)

isgraph

Printable character except space (‘ ‘)

islower

Lowercase letter (‘a’-‘z’)

isprint

Printable character (0x20 - 0x7E)

ispunct Punctuation

character

isspace White-space

character (0x09 - 0x0D or 0x20)

isupper

Uppercase letter (‘A’-‘Z’)

isxdigit

Hexadecimal digit (‘A’-‘F’,’a’-‘f’, or ‘0’-‘9’)

Return Value

These routines return a nonzero value if the integer satisfies the test condition and 0 if it does
not.

labs

FUNCTION

Header file statement:

#include

Syntax:

long labs

( long n );

The labs function produces the absolute value of its long-integer argument n.

Return Value

The labs function returns the absolute value of its argument. There is no error returned.

Parameter

Description

n

Long-integer value