Sinh, sinhf, Sprintf, Sqrt, sqrtf – Zilog ZUSBOPTS User Manual
Page 469: Sinh, sinhf sprintf sqrt, sqrtf, Synopsis, Returns, Example

UM017105-0511
Standard Functions
Zilog Developer Studio II – ZNEO™
User Manual
441
sinh, sinhf
Computes the hyperbolic sine of x. A range error occurs if the magnitude of x is too large.
Synopsis
#include
double sinh(double x);
float sinhf(float x);
Returns
The hyperbolic sine value.
Example
double x=1.24;
double y;
y=sinh(x);
sprintf
The
sprintf
function is equivalent to
printf
, except that the argument s specifies an
array into which the generated output is to be written, rather than to a stream. A null char-
acter is written at the end of the characters written; it is not counted as part of the returned
sum.
Synopsis
#include
int sprintf(char *s, const char *format, ...);
Returns
The number of characters written in the array, not counting the terminating null character.
Example
int d=51;
char buf [40];
sprintf(buf,"COMPASS/%d",d);
sqrt, sqrtf
Computes the non-negative square root of x. A domain error occurs if the argument is
negative.