banan-os/libc/include/ctype.h

49 lines
991 B
C
Raw Normal View History

#ifndef _CTYPE_H
#define _CTYPE_H 1
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/ctype.h.html
2023-01-16 19:13:11 +02:00
#include <sys/cdefs.h>
#include <bits/types/locale_t.h>
2023-01-16 19:13:11 +02:00
__BEGIN_DECLS
int isalnum(int);
int isalnum_l(int, locale_t);
2023-01-16 19:13:11 +02:00
int isalpha(int);
int isalpha_l(int, locale_t);
2023-01-16 19:13:11 +02:00
int isascii(int);
int isblank(int);
int isblank_l(int, locale_t);
2023-01-16 19:13:11 +02:00
int iscntrl(int);
int iscntrl_l(int, locale_t);
2023-01-16 19:13:11 +02:00
int isdigit(int);
int isdigit_l(int, locale_t);
2023-01-16 19:13:11 +02:00
int isgraph(int);
int isgraph_l(int, locale_t);
2023-01-16 19:13:11 +02:00
int islower(int);
int islower_l(int, locale_t);
2023-01-16 19:13:11 +02:00
int isprint(int);
int isprint_l(int, locale_t);
2023-01-16 19:13:11 +02:00
int ispunct(int);
int ispunct_l(int, locale_t);
2023-01-16 19:13:11 +02:00
int isspace(int);
int isspace_l(int, locale_t);
2023-01-16 19:13:11 +02:00
int isupper(int);
int isupper_l(int, locale_t);
2023-01-16 19:13:11 +02:00
int isxdigit(int);
int isxdigit_l(int, locale_t);
int toascii(int);
2023-05-10 23:13:56 +03:00
int tolower(int);
int tolower_l(int, locale_t);
int toupper(int);
int toupper_l(int, locale_t);
#define _toupper(val) ::toupper(val)
#define _tolower(val) ::tolower(val)
__END_DECLS
2023-05-10 23:13:56 +03:00
#endif