beautypg.com

Setjmp, Sin, sinf, Setjmp sin, sinf – Zilog ZUSBOPTS User Manual

Page 468: Synopsis, Returns, Example

background image

Standard Functions

UM017105-0511

440

Zilog Developer Studio II – ZNEO™
User Manual

setjmp

Saves its calling environment in its jmp_buf argument, for later use by the

longjmp

function.

Synopsis

#include

int setjmp(jmp_buf env);

Returns

If the return is from a direct invocation, the

setjmp

function returns the value zero. If the

return is from a call to the

longjmp

function, the

setjmp

function returns a nonzero

value.

Example

int i;

jmp_buf env;

i=setjmp(env);

longjmp(env, i);

sin, sinf

Computes the sine of x (measured in radians). A large magnitude argument can yield a
result with little or no significance.

Synopsis

#include

double sin(double x);

float sinf(float x);

Returns

The sine value.

Example

double x=1.24;

double y;

y=sin(x);

This manual is related to the following products: