C Type Library
The mikroPascal PRO for PIC32 provides a set of library functions for testing and mapping characters.
Library Functions
isalnum
| Prototype |
function isalnum(character : byte) : word |
|---|---|
| Description |
Function returns 0xFF if the |
| Example |
res := isalnum('o'); // returns 0xFF
res := isalnum('\r'); // returns 0
|
isalpha
| Prototype |
function isalpha(character : byte) : word |
|---|---|
| Description |
Function returns 0xFF if the |
| Example |
res := isalpha('A'); // returns 0xFF
res := isalpha('1'); // returns 0
|
iscntrl
| Prototype |
function iscntrl(character : byte) : word |
|---|---|
| Description |
Function returns 0xFF if the |
| Example |
res := iscntrl('\r'); // returns 0xFF
res := iscntrl('o'); // returns 0
|
isdigit
| Prototype |
function isdigit(character : byte) : word |
|---|---|
| Description |
Function returns 0xFF if the |
| Example |
res := isdigit('1'); // returns 0xFF
res := isdigit('o'); // returns 0
|
isgraph
| Prototype |
function isgraph(character : byte) : word |
|---|---|
| Description |
Function returns 0xFF if the |
| Example |
res := isgraph('o'); // returns 0xFF
res := isgraph(' '); // returns 0
|
islower
| Prototype |
function islower(character : byte) : word |
|---|---|
| Description |
Function returns 0xFF if the |
| Example |
res := islower('0'); // returns 0xFF
res := islower('A'); // returns 0
|
ispunct
| Prototype |
function ispunct(character : byte) : word |
|---|---|
| Description |
Function returns 0xFF if the |
| Example |
res := ispunct('.'); // returns 0xFF
res := ispunct('1'); // returns 0
|
isspace
| Prototype |
function isspace(character : byte) : word |
|---|---|
| Description |
Function returns 0xFF if the |
| Example |
res := isspace(' '); // returns 0xFF
res := isspace('1'); // returns 0
|
isupper
| Prototype |
function isupper(character : byte) : word |
|---|---|
| Description |
Function returns 0xFF if the |
| Example |
res := isupper('A'); // returns 0xFF
res := isupper('a'); // returns 0
|
isxdigit
| Prototype |
function isxdigit(character : byte) : word |
|---|---|
| Description |
Function returns 0xFF if the |
| Example |
res := isxdigit('A'); // returns 0xFF
res := isxdigit('P'); // returns 0
|
toupper
| Prototype |
function toupper(character : byte) : byte |
|---|---|
| Description |
If the |
| Example |
res := toupper('a'); // returns A
res := toupper('B'); // returns B
|
tolower
| Prototype |
function tolower(character : byte) : byte |
|---|---|
| Description |
If the |
| Example |
res := tolower('A'); // returns a
res := tolower('b'); // returns b
|
What do you think about this topic ? Send us feedback!



