ANSI C’s Library Function |
C C C |
|
14C |
|
C C C |
|
C C |
Note: See acos(), asin(), and cos().
sinh()
Header: math.h
Syntax: double sinh(double dValue);
Description: Computes the hyperbolic sine of dValue.
Parameters: dValue—Value to compute the hyperbolic sine of.
Returns: The hyperbolic sine of dValue.
Example: dValueSine = sinh(.5);/* dValueSine will be 0.5210 */
Note: See acos(), asin(), and cos().
sprintf()
Header: stdio.h
Syntax: int sprintf(char * pBuffer,
const char * szFormat, ...);
Description: Prints, to the buffer pointed to by pBuffer, formatted output as defined by szFormat.
Parameters: pBuffer—Pointer to a destination buffer.
szFormat—A format descriptor string.
Returns: Number of characters written. If negative, then an error occurred.
Example: char szBuffer[100];
sprintf(szBuffer,
“The number one is %d\n”, 1);
Note: Be sure the destination buffer is large enough. See the section on format codes at the end of this chapter.