forked from phoenix-rtos/libphoenix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathctype.h
76 lines (45 loc) · 1.67 KB
/
ctype.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
* Phoenix-RTOS
*
* libphoenix
*
* ctypes.h
*
* Copyright 2017 Phoenix Systems
* Author: Pawel Pisarczyk
*
* This file is part of Phoenix-RTOS.
*
* %LICENSE%
*/
#ifndef _LIBPHOENIX_CTYPES_H_
#define _LIBPHOENIX_CTYPES_H_
/* This function checks whether the passed character is alphanumeric. */
extern int isalnum(int c);
/* This function checks whether the passed character is alphabetic. */
extern int isalpha(int c);
/* This function checks whether the passed character is control character. */
extern int iscntrl(int c);
/* This function checks whether the passed character is decimal digit. */
extern int isdigit(int c);
/* This function checks whether the passed character has graphical representation using locale. */
extern int isgraph(int c);
/* This function checks whether the passed character is lowercase letter. */
extern int islower(int c);
/* This function checks whether the passed character is printable. */
extern int isprint(int c);
/* This function checks whether the passed character is a punctuation character. */
extern int ispunct(int c);
/* This function checks whether the passed character is white-space. */
extern int isspace(int c);
/* This function checks whether the passed character is an uppercase letter. */
extern int isupper(int c);
/* This function checks whether the passed character is a hexadecimal digit. */
extern int isxdigit(int c);
/* This function checks whether the passed character is a blank character. */
extern int isblank(int c);
/* This function converts uppercase letters to lowercase. */
extern int tolower(int c);
/* This function converts lowercase letters to uppercase. */
extern int toupper(int c);
#endif