Epson S5U1C17001C Manual page 77

Cmos 16-bit single chip microcontroller (c compiler package for s1c17 family) (ver. 3.2)
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); Allocate ar
void free(void *ptr);
void *realloc(void *ptr, size_t size);
void exit(int status);
void abort(void);
void * bsearch(const void *key, const void
*base, size_t count,size_t size, int
(*compare)(const void *, const void *));
void qsort qsort(void *base, size_t count, size_t
size,int (*compare)(const void *, const void *));
int abs(int x);
long labs(long x);
div_t div(int n, int d);
ldiv_t ldiv(int n, int d);
int rand(void );
void srand(unsigned int seed);
long atol(const char *str);
int atoi(const char *str);
double atof (const char *str);
double strtod(const char *str, char **ptr);
long strtol(const char *str, char **ptr, int base); Co
unsigned long strtoul(const 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
(Rev. 1.0)
Table 5.4.2.2 Utility functions
Functionality
Allocate area.
r
ay area.
Clear area.
ze
Change area si
.
gr
Terminate pro
am
normally.
Terminate pro
gr
am
abnormally.
Binary search.
Qui
c
k sort.
Return absolute value
( int type).
Return absolute value
( long type).
Divide int typ
e
.
Divide long typ
e
.
r
Return pseudo-
andom
n
umber.
Set seed of pseudo-
r
n
andom
umber.
n
r
Co
vert cha
acter
string into long typ
Co
n
vert cha
r
acter
string into int typ
e
Co
nv
e
rt
characte
into double typ
e
.
Co
e
characte
nv
rt
into double typ
e
.
n
r
vert cha
acter
string into long typ
n
r
Co
vert cha
acter string
into unsigned long typ
Table 5.4.2.3 Non-local branch functions
Functionality
Non-local branch
Non-local branch
Seiko Epson Corporation
Reentrant
r
Nonreent
ant Change global varia
ansi_ucStartAlloc , ansi_ucEndAlloc ,
ansi_ucNxtAlcP , ansi_ucTblPtr , and
ansi_ulRow .
r
n
Nonreent
ant I
valid for call from memory allocat
r
n
Nonreent
ant I
valid for call from memory allocat
r
n
Nonreent
ant I
valid for call from memory allocat
o exit ,
r
Re
e
t
Reent
ant
f
r
called later.
o exit ,
Reent
r
ant
Re
f
e
r
t
called later.
r
Reent
ant
Reent
r
ant
Reent
r
ant
r
Reent
ant
r
Nonreent
ant Change global varia
r
Nonreent
ant Change global varia
r
Nonreent
ant Change global varia
r
Nonreent
ant Change global varia
r
Nonreent
ant Change global varia
e
.
Nonreent
r
ant Change global varia
.
r
st
r
in
g
Nonreent
r
ant Change global varia
st
in
r
r
r
g
Nonreent
ant Change global varia
r
Nonreent
ant Change global varia
e
.
r
Nonreent
ant Change global varia
e
.
Reentrant
Reentrant:
Reentrant:
5 Library
Notes
les errno ,
b
e
.
e
.
e
.
te
minate
o
th
sid
r
s
n
e
e of
te
r
minate
s
o
n
th
e
sid
e of
le errno .
b
le errno .
b
le errno .
b
le errno .
b
le errno .
b
le errno .
b
le errno .
b
le errno .
b
le errno .
b
le errno .
b
Notes
5-13

Advertisement

Table of Contents
loading

Table of Contents