beautypg.com

Abort, Acos, Abort abs acos – Zilog Z8F0130 User Manual

Page 455

background image

UM013037-1212

abort

Zilog Developer Studio II – Z8 Encore!

User Manual

431

abort

Causes an abnormal termination of the program.

Synopsis

#include

void abort(void);

The

abort

function is usually called by the

assert

macro. If you use

assert

s in your

application, you might want to permanently place a breakpoint in

abort()

to simplify

debugging when

assert

s fail.

abs

Computes the absolute value of an integer

j

. If the result cannot be represented, the behav-

ior is undefined.

Synopsis

#include

int abs(int j);

Returns

The absolute value.

Example

int I=-5632;

int j;

j=abs(I);

acos

Computes the principal value of the arc cosine of

x

. A domain error occurs for arguments

not in the range [-1,+1].

Synopsis

#include

double acos(double x);

Returns

The arc cosine in the range [0, pi].

Note: