Epson S5U1C17001C Manual page 397

Cmos 16-bit single chip microcomputer, c compiler package for s1c17 family
Hide thumbs Also See for S5U1C17001C:
Table of Contents

Advertisement

Utility functions
The table below lists the utility functions included in libc.a.
Header file: stdlib.h
function
void *malloc(size_t size);
void *calloc(size_t elt_count, size_t
elt_size);
void free(void *ptr);
void *realloc(void *ptr, size_t size);
void exit(int status);
void abort( );
void *bsearch(void *key, void *base,
size_t count, size_t size, int (*compare)
(void *, void *));
void qsort(void *base, size_t count,
size_t size, int (*compare)(void *, void
*));
int abs(int x);
long int labs(long int x);
div_t div(int n, int d);
ldiv_t ldiv(int n, int d);
int rand( );
void srand(unsigned int seed);
long int atol(char *str);
int atoi(char *str);
double atof(char *str);
double strtod(char *str, char **ptr);
long int strtol(char *str, char **ptr,
int base);
unsigned long int strtoul(char *str, char
**ptr, int base);
non-local branch functions
The table below lists the non-local branch functions included in libc.a.
Header file: setjmp.h
function
int setjmp(jmp_buf env);
void longjmp(jmp_buf env, int status);
S5U1C17001C ManUal
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
Table 7.3.2.2 Utility functions
functionality
Allocate area.
Allocate array area.
Clear area.
Change area size.
Terminate program
normally.
Terminate program
abnormally.
Binary search.
Quick sort.
Return absolute value
(int type).
Return absolute value
(long type).
Divide int type.
Divide long type.
Return pseudo-random
number.
Set seed of pseudo-
random number.
Convert character
string into long type.
Convert character
string into int type.
Convert character string
into double type.
Convert character string
into double type.
Convert character
string into long type.
Convert character
string into unsigned
long type.
Table 7.3.2.3 Non-local branch functions
functionality
Non-local branch
Non-local branch
EPSOn
reentrant
notes
Nonreentrant Change global variables errno,
ansi_ucStartAlloc,
ansi_ucEndAlloc,
ansi_ucNxtAlcP,
ansi_ucTblPtr, and ansi_ulRow.
Nonreentrant Invalid for call from memory allocate.
Nonreentrant Invalid for call from memory allocate.
Nonreentrant Invalid for call from memory allocate.
Reentrant
Refer to exit, terminates on the side
of called later.
Reentrant
Refer to exit, terminates on the side
of called later.
Reentrant
Reentrant
Reentrant
Reentrant
Nonreentrant Change global variable errno.
Nonreentrant Change global variable errno.
Nonreentrant Change global variable errno.
Nonreentrant Change global variable errno.
Nonreentrant Change global variable errno.
Nonreentrant Change global variable errno.
Nonreentrant Change global variable errno.
Nonreentrant Change global variable errno.
Nonreentrant Change global variable errno.
Nonreentrant Change global variable errno.
reentrant
notes
Reentrant
Reentrant
7 liBrary
7
Library
7-11

Advertisement

Table of Contents
loading

Table of Contents