DEC C
Language Reference Manual


Previous Contents Index

Power Functions

double pow(double x, double y);

double sqrt(double x);

Nearest Integer, Absolute Value, and Remainder Functions

double ceil(double x);

double fabs(double x);

double floor(double x);

double fmod(double x, double y);

9.7 Nonlocal Jumps (<setjmp.h>)

The <setjmp.h> header file contains declarations that provide a way to avoid the normal function call and return sequence, typically to permit an intermediate return from a nested function call.

Macro

int setjmp(jmp_buf env)

Type

jmp_buf

Function

9.8 Signal Handling (<signal.h>)

The <signal.h> header file declares a type and two functions and defines several macros for handling exception conditions that might be reported during program execution.

Type

sig_atomic_t

Macros


SIG_DFL
SIG_ERR
SIG_IGN

Functions

void (*signal(int sig, void (*handler) (int))) (int);

int raise(int sig);

9.9 Variable Arguments (<stdarg.h>)

The <stdarg.h> header file declares a type and defines three macros for advancing through a list of function arguments of varying number and type.

Type

va_list

Macros

void va_start(va_list ap, parmN);

type va_arg(va_list ap, type);

void va_end(va_list ap);

9.10 Common Definitions (<stddef.h>)

The <stddef.h> header file defines several types and macros, some of which are also defined in other header files.

Types

ptrdiff

size_t

wchar_t

Macros

NULL

offsetof(type, member-designator)

9.11 Standard Input/Output (<stdio.h>)

The <stdio.h> header file declares three types, several macros, and many functions for performing text input and output. A text stream consists of a sequence of lines; each line ends with a new-line character.

Types

size_t

FILE

fpos_t

Macros

NULL

_IOFBF
_IOLBF
_IONBF

BUFFSIZ

EOF

FOPEN_MAX

FILENAME_MAX

L_tmpnam

SEEK_CUR
SEEK_END
SEEK_SET

TMP_MAX

stderr
stdin
stdout

File Operation Functions

int remove(const char *filename);

int rename(const char *old, const char *new);

FILE *tmpfile(void);

FILE *tmpnam(void);

File Access Functions

int fclose(FILE *stream);

int fflush(FILE *stream);

FILE *fopen(const char *filename, const char *mode);

FILE *freopen(const char *filename, const char *mode, FILE *stream);

void setbuf(FILE *stream, char *buf);

int setvbuf(FILE *stream, char *buf, int mode size_t size);

Formatted Input/Output Functions

int fprintf(FILE *stream, const char *format, ...);


Previous Next Contents Index