Reference
ANSI Library libc.a (1)
Library
Input/Output Functions
(header file: stdio.h)
fread( )
size_t fread(void *ptr, size_t size, size_t count, FILE *stream);
∗
1,
∗
2
fwrite( )
size_t fwrite(const void *ptr, size_t size, size_t count, FILE *stream);
∗
1,
∗
2
fgetc( )
int fgetc(FILE *stream);
∗
2
getc( )
int getc(FILE *stream);
∗
1,
∗
2
getchar( )
int getchar(void);
∗
1,
∗
2
ungetc( )
int ungetc(int c, FILE *stream);
∗
1
fgets( )
char *fgets(char *s, int n, FILE *stream);
∗
1,
∗
2
gets( )
char *gets(char *s);
∗
1,
∗
2
fputc( )
int fputc(int c, FILE *stream);
∗
2
putc( )
int putc(int c, FILE *stream);
∗
1,
∗
2
putchar( )
int putchar(int c);
∗
1,
∗
2
fputs( )
int fputs(char *s, FILE *stream);
∗
1,
∗
2
puts( )
int puts(char *s);
∗
1,
∗
2
perror( )
void perror(const char *s);
∗
1,
∗
2
fscanf( )
int fscanf(FILE *stream, const char *format, ...);
∗
1,
∗
2
scanf( )
int scanf(const char *format, ...);
∗
1,
∗
2
sscanf( )
int sscanf(const char *s, const char *format, ...);
∗
1,
∗
2
fprintf( )
int fprintf(FILE *stream, const char *format, ...);
∗
1,
∗
2
printf( )
int printf(const char *format, ...);
∗
1,
∗
2
sprintf( )
int sprintf(char *s, const char *format, ...);
∗
1,
∗
2
vfprintf( )
int vfprintf(FILE *stream, const char *format, va_list arg);
∗
1,
∗
2
vprintf( )
int vprintf(const char *format, va_list arg);
∗
1,
∗
2
vsprintf( )
int vsprintf(char *s, const char *format, va_list arg);
Utility Functions
(header file: stdlib.h)
malloc( )
void *malloc(size_t size);
∗
1
calloc( )
void *calloc(size_t elt_count, size_t elt_size);
∗
1
free( )
void free(void *ptr);
∗
1
realloc( )
void *realloc(void *ptr, size_t size);
∗
1
exit( )
void exit(int status);
abort( )
void abort(void);
bsearch( )
void *bsearch(const void *key, const void *base, size_t count,size_t size, int
(*compare)(const void *, const void *));
qsort( )
void qsort(void *base, size_t count, size_t size,int (*compare)
const void *, const void *));
abs( )
int abs(int x);
labs( )
long labs(long x);
div( )
div_t div(int n, int d);
∗
1
ldiv( )
ldiv_t ldiv(long n, long d);
∗
1
rand( )
int rand(void);
srand( )
void srand(unsigned int seed);
atol( )
long atol(const char *str);
atoi( )
int atoi(const char *str);
∗
1
atof( )
double atof(const char *str);
∗
1
strtod( )
double strtod(const char *str, char **ptr);
∗
1
strtol( )
long strtol(const char *str, char **ptr, int base);
∗
1
strtoul( )
unsigned long strtoul(const char *str, char **ptr, int base);
∗
1
Date and Time Functions
(header file: time.h)
gmtime( )
struct tm *gmtime(time_t *t);
mktime( )
time_t mktime(struct tm *tmptr);
time( )
time_t time(time_t *tptr);
∗
1
Non-local Branch Functions
(header file: setjmp.h)
setjmp( )
int setjmp(jmp_buf *ptr);
longjmp( )
void longjmp(jmp_buf *ptr, int status);
∗
1 These functions need to declare and initialize the global variables.
∗
2 These functions need to define the low-level functions and I/O buffers.
Summary of Contents for S5U1C17001C
Page 6: ......
Page 17: ...1 General S5U1C17001C Manual 1 General ...
Page 18: ......
Page 21: ...1 2 Install S5U1C17001C Manual 2 Installation ...
Page 22: ......
Page 29: ...3 SoftDev S5U1C17001C Manual 3 Software Development Procedures ...
Page 30: ......
Page 103: ...4 SrcFiles S5U1C17001C Manual 4 Source files ...
Page 104: ......
Page 121: ...5 IDE S5U1C17001C Manual 5 gnU17 iDE ...
Page 122: ......
Page 365: ...6 Compiler S5U1C17001C Manual 6 C Compiler ...
Page 366: ......
Page 385: ...7 Library S5U1C17001C Manual 7 library ...
Page 386: ......
Page 405: ...8 Assemblr S5U1C17001C Manual 8 assembler ...
Page 406: ......
Page 439: ...9 Linker S5U1C17001C Manual 9 linker ...
Page 440: ......
Page 449: ...10 Debugger S5U1C17001C Manual 10 Debugger ...
Page 450: ......
Page 626: ...11 Tools S5U1C17001C Manual 11 Other Tools ...
Page 627: ......
Page 696: ...S1C17 Family C Compiler Package Quick Reference Reference ...