String handling Page 350
Page 350

UM014423-0607
C Standard Library
ZiLOG Developer Studio II
eZ80Acclaim!
®
User Manual
330
Integer Arithmetic
String Handling
The <
string.h
> header declares several functions useful for manipulating character
arrays and other objects treated as character arrays. Various methods are used for deter-
mining the lengths of arrays, but in all cases a char* or void* argument points to the initial
(lowest addressed) character of the array. If an array is written beyond the end of an object,
the behavior is undefined.
Type
Macro
Functions
The following sections describe the string-handling functions:
•
•
•
•
•
int abs(int j);
Finds absolute value of integer value.
div_t div(int numer, int denom);
Computes integer quotient and remainder.
long int labs(long int j);
Finds absolute value of long integer value.
ldiv_t ldiv(long int numer, long int denom);
Computes long quotient and remainder.
size_t
Unsigned integral type of the result of the sizeof operator.
NULL
Expands to a null pointer constant.