ANSI Library libc.a (2)
Mathematical Functions
(header file: math.h, errno.h, float.h, limits.h)
fabs( )
double fabs(double x);
ceil( )
double ceil(double x);
floor( )
double floor(double x);
fmod( )
double fmod(double x, double y);
exp( )
double exp(double x);
log( )
double log(double x);
log10( )
double log10(double x);
frexp( )
double frexp(double x, int *nptr);
ldexp( )
double ldexp(double x, int n);
modf( )
double modf(double x, double *nptr);
pow( )
double pow(double x, double y);
sqrt( )
double sqrt(double x);
sin( )
double sin(double x);
cos( )
double cos(double x);
tan( )
double tan(double x);
asin( )
double asin(double x);
acos( )
double acos(double x);
atan( )
double atan(double x);
atan2( )
double atan2(double y, double x);
sinh( )
double sinh(double x);
cosh( )
double cosh(double x);
tanh( )
double tanh(double x);
Character Type Determination/Conversion Functions
isalnum( )
int isalnum(int c);
isalpha( )
int isalpha(int c);
iscntrl( )
int iscntrl(int c);
isdigit( )
int isdigit(int c);
isgraph( )
int isgraph(int c);
islower( )
int islower(int c);
isprint( )
int isprint(int c);
ispunct( )
int ispunct(int c);
isspace( )
int isspace(int c);
isupper( )
int isupper(int c);
isxdigit( )
int isxdigit(int c);
tolower( )
int tolower(int c);
toupper( )
int toupper(int c);
Variable Argument Macros
(header file: stdarg.h)
va_start( )
void va_start(va_list ap, type lastarg);
va_arg( )
type va_arg(va_list ap, type);
va_end( )
void va_end(va_list ap);
∗1 These functions need to declare and initialize the global variables.
Character Functions
∗1
memchr( )
∗1
memcmp( )
∗1
memcpy( )
∗1
memmove( )
∗1
memset( )
∗1
strcat( )
∗1
strchr( )
∗1
strcmp( )
∗1
strcpy( )
∗1
strcspn( )
∗1
strerror( )
∗1
strlen( )
∗1
strncat( )
∗1
strncmp( )
∗1
strncpy( )
∗1
strpbrk( )
∗1
strrchr( )
strspn( )
∗1
strstr( )
∗1
strtok( )
∗1
∗1 Declaring and Initializing Global Variables
(header file: ctype.h)
FILE _iob[FOPEN_MAX+1];
FILE *stdin;
FILE *stdout;
FILE *stderr;
int errno;
unsigned int seed;
time_t gm_sec;
∗2 Definition of Lower-level Functions
read( )
write( )
(header file: string.h)
void *memchr(const void *s, int c, size_t n);
int memcmp(const void *s1, const void *s2, size_t n);
void *memcpy(void *s1, const void *s2, size_t n);
void *memmove(void *s1, const void *s2, size_t n);
void *memset(void *s, int c, size_t n);
char *strcat(char *s1, const char *s2);
char *strchr(const char *s, int c);
int strcmp(const char *s1, const char *s2);
char *strcpy(char *s1, const char *s2);
size_t strcspn(const char *s1, const char *s2);
char *strerror(int code);
size_t strlen(const char *s);
char *strncat(char *s1, const char *s2, size_t n);
int strncmp(const char *s1, const char *s2, size_t n);
char *strncpy(char *s1, const char *s2, size_t n);
char *strpbrk(const char *s1, const char *s2);
char *strrchr(const char *str, int c);
size_t strspn(const char *s1, const char *s2);
char *strstr(const char *s1, const char *s2);
char *strtok(char *s1, const char *s2);
_iob[N]._flg=_UGETN; _iob[N]._buf=0; _iob[N]._fd=N;
(N=0: stdin, N=1: stdout, N=2: stderr)
stdin=&_iob[0];
stdout=&_iob[1];
stderr=&_iob[2];
errno=0;
seed=1;
gm_sec=-1;
int read(int fd, char *buf, int nbytes);
unsigned char READ_BUF[65]; (Variable name is arbitrary)
unsigned char READ_EOF;
int write(int fd, char *buf, int nbytes);
unsigned char WRITE_BUF[65]; (Variable name is arbitrary)
Library
Reference
Need help?
Do you have a question about the S5U1C17001C and is the answer not in the manual?