Library Functions And Header Files - Epson S5U1C17001C Manual

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

Advertisement

4.2.2 library functions and Header files

This package contains an ANSI library and an emulation library for calculating floating-point numbers and the
remainders of divided integral numbers.
The header files in the "include" directory contain library function declarations and macro definitions. When using
a library function, include the header file that contains its declaration by using the #include instruction.
Certain ANSI library functions not supported by this package are not included in the ANSI library.
The client assumes responsibility for function implementation and prototype declarations when using ANSI library
functions not supported by this package.
For some ANSI library functions not supported by this package, the header files include only prototype
declarations. In these cases, include the pertinent header file rather than declaring a prototype before implementing
the function.
The following table shows the relationship between the types of library files and header files.
anSi library
file name
libc.a
perror, getchar, fgetc, getc, gets, fgets, fscanf, scanf, sscanf, fread, putchar,
fputc, putc, puts, fputs, ungetc, fprintf, printf, sprintf, vfprintf, vprintf, vsprintf,
fwrite
abort, exit, malloc, calloc, realloc, free, atoi, atol, atof, strtol, strtoul, strtod,
abs, labs, div, ldiv, rand, srand, bsearch, qsort
setjmp, longjmp
time, mktime, gmtime
acos, asin, atan, atan2, ceil, cos, cosh, exp, fabs, floor, fmod, frexp, ldexp,
log, log10, modf, pow, sin, sinh, sqrt, tan, tanh
memchr, memmove, strchr, strcspn, strncat, strpbrk, strstr, memcmp,
memset, strcmp, strerror, strncmp, strrchr, strtok, memcpy, strcat, strcpy,
strlen, strncpy, strspn
isalnum, iscntrl, isgraph, isprint, isspace, isxdigit, toupper, isalpha, isdigit,
islower, ispunct, isupper, tolower
va_start, va_arg, va_end
Emulation library
file name
libgcc.a
___subdf3, __adddf3, __addsf3, __ashldi3, __ashlhi3, __ashlsi3, __ashrdi3, __ashrhi3, __ashrsi3,
(libgccM.a /
__cmpdi2, __divdf3, __divdi3, __divhi3, __divsf3, __divsi3, __eqdf2, __eqsf2, __extendsfdf2,
libgccMD.a)
__fixdfdi, __fixdfsi, __fixsfdi, __fixsfsi, __fixunsdfdi, __fixunsdfsi, __fixunssfdi, __fixunssfsi,
__floatdidf, __floatdisf, __floatsidf, __floatsisf, __gedf2, __gesf2, __gtdf2, __gtsf2, __ledf2, __lesf2,
__lshrdi3, __lshrhi3, __lshrsi3, __ltdf2, __ltsf2, __moddi3, __modhi3, __modsi3, __muldf3, __muldi3,
__mulhi3, __mulsf3, __mulsi3, __nedf2, __negdf2, __negdi2, __negsf2, __nesf2, __subsf3,
__truncdfsf2, __ucmpdi2, __udivdi3, __udivhi3, __udivsi3, __umoddi3, __umodhi3, __umodsi3,
__cmpsi2, __ucmpsi2
functions with prototype declarations only
freopen, tmpfile, tmpnam, remove, rename, fopen, fclose, setbuf,
setvbuf, fflush, clearerr, feof, ferror, fseek,fgetpos, fsetpos, ftell, rewind
atexit, getenv, system
difftime, clock, localtime, asctime, ctime
For details about the functions included in the libraries, refer to Chapter 7, "Library".
When using a library function, be sure to specify the library file that contains the function used when linking. The
linker extracts only the necessary object modules from the specified library file as it links them.
S5U1C17001C ManUal
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
Table 4.2.2.1 List of library files and functions
functions/macros
functions
functions
EPSOn
4 SOUrCE filES
Corresponding header file
stdio.h
stdlib.h
setjmp.h
time.h
math.h, errno.h, float.h,
limits.h
string.h
ctype.h
stdarg.h
Corresponding header file
stdio.h
stdlib.h
time.h
4
SrcFiles
4-3

Advertisement

Table of Contents
loading

Table of Contents