beautypg.com

Nonlocal jumps

Page 429: Type

background image

UM017105-0511

Standard Header Files

Zilog Developer Studio II – ZNEO™

User Manual

401

The following additional nearest integer functions are provided:

Nonlocal Jumps

The <

setjmp.h

> header declares two functions and one type for bypassing the normal

function call and return discipline.

Type

Functions

Variable Arguments

The <

stdarg.h

> header declares a type and a function and defines two macros for

advancing through a list of arguments whose number and types are not known to the called
function when it is translated.

A function can be called with a variable number of arguments of varying types. A Func-
tion Definitions
parameter list contains one or more parameters. The rightmost parameter
plays a special role in the access mechanism and is designated parmN in this description.

Type

float ceilf(float x);

Finds integer ceiling of x.

float fabsf(float x);

Finds absolute value of x.

float floorf(float x);

Finds largest integer less than or equal to x.

float fmodf(float x,float y);

Finds floating-point remainder of x/y.

jmp_buf

An array type suitable for holding the information required to restore a
calling environment.

int setjmp(jmp_buf env);

Saves a stack environment.

void longjmp(jmp_buf env, int val);

Restores a saved stack environ-
ment.

va_list

An array type suitable for holding information required by the macro
va_arg and the function va_end. The called function declares a variable
(referred to as ap in this section) having type va_list. The variable ap can
be passed as an argument to another function.

This manual is related to the following products: