Epson S5U1C17001C Manual page 399

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

Advertisement

Character functions
The table below lists the character functions included in libc.a.
Header file: string.h
function
void *memchr(const void *s, int c, size_t
n);
int memcmp(char *s1, char *s2, int n);
void *memcpy(char *s1, char *s2, int n);
void *memmove(char *s1, char *s2, int n);
void *memset(char *s, int c, int n);
char *strcat(char *s1, char *s2);
char *strchr(char *s, int c);
int strcmp(char *s1, char *s2);
char *strcpy(char *s1, char *s2);
size_t *strcspn(char *s1, char *s2);
char *strerror(int code);
size_t strlen(char *s);
size_t strncat(char *s1, char *s2, int n); Concatenate character strings (number of
int strncmp(char *s1, char *s2, int n);
char *strncpy(char *s1, char *s2, int n);
char *strpbrk(char *s1, char *s2);
char *strrchr(char *s, int c);
size_t strspn(char *s1, char *s2);
char *strstr(char *s1, char *s2);
char *strtok(char *s1, char *s2);
Character type determination/conversion functions
The table below lists the character type determination/conversion functions included in libc.a.
Table 7.3.2.7 Character type determination/conversion functions
Header file: ctype.h
function
int isalnum(int c);
int isalpha(int c);
int iscntrl(int c);
int isdigit(int c);
int isgraph(int c);
int islower(int c);
int isprint(int c);
int ispunct(int c);
int isspace(int c);
int isupper(int c);
int isxdigit(int c);
int tolower(int c);
int toupper(int c);
S5U1C17001C ManUal
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
Table 7.3.2.6 Character functions
functionality
Return specified character position in the
storage area.
Compare storage areas.
Copy storage area.
Copy the storage area (overlapping allowed).
Set character in the storage area.
Concatenate character strings.
Return specified character position found first
in the character string.
Compare character strings.
Copy character string.
Return number of characters from the
beginning of the character string until the
specified character appears (multiple choices).
Return error message character string.
Return length of character string.
characters specified).
Compare character strings (number of
characters specified).
Copy character string (number of characters
specified).
Return specified character position (multiple
choices) found first in the character string.
Return specified character position found last
in the character string.
Return number of characters from the
beginning of the character string until the non-
specified character appears (multiple choices).
Return position where the specified character
string appeared first.
Divide the character string into tokens.
Determine character type (decimal or alphabet).
Determine character type (alphabet).
Determine character type (control character).
Determine character type (decimal).
Determine character type (graphic character).
Determine character type (lowercase alphabet).
Determine character type (printable character).
Determine character type (delimiter).
Determine character type (null character).
Determine character type (uppercase alphabet).
Determine character type (hexadecimal).
Convert character type (uppercase alphabet → lowercase).
Convert character type (lowercase alphabet → uppercase).
EPSOn
reentrant
Reentrant
Reentrant
Reentrant
Reentrant
Reentrant
Reentrant
Reentrant
Reentrant
Reentrant
Reentrant
Reentrant
Reentrant
Reentrant
Reentrant
Reentrant
Reentrant
Reentrant
Reentrant
Reentrant
Nonreentrant Change static
functionality
7 liBrary
notes
7
Library
variable.
reentrant
Reentrant
Reentrant
Reentrant
Reentrant
Reentrant
Reentrant
Reentrant
Reentrant
Reentrant
Reentrant
Reentrant
Reentrant
Reentrant
7-13

Advertisement

Table of Contents
loading

Table of Contents