String handling <string.h – Zilog EZ80F916 User Manual

Page 350

Advertising
background image

UM014423-0607

C Standard Library

ZiLOG Developer Studio II

eZ80Acclaim!

®

User Manual

330

Integer Arithmetic

String Handling <string.h>

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:

“Copying” on page 331

“Concatenation” on page 331

“Comparison” on page 331

“Search” on page 331

“Miscellaneous” on page 332

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.

Advertising
This manual is related to the following products: