mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2024-11-27 10:00:17 -06:00
29 lines
609 B
C
29 lines
609 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef CTYPE_H
|
|
#define CTYPE_H
|
|
/*
|
|
* Provides a subset of the functions normally provided by <ctype.h>.
|
|
*
|
|
* Copyright (C) 2020 Martin Whitaker.
|
|
*/
|
|
|
|
/*
|
|
* If c is a lower-case letter, returns its upper-case equivalent, otherwise
|
|
* returns c. Assumes c is an ASCII character.
|
|
*/
|
|
int toupper(int c);
|
|
|
|
/*
|
|
* Returns 1 if c is a decimal digit, otherwise returns 0. Assumes c is an
|
|
* ASCII character.
|
|
*/
|
|
int isdigit(int c);
|
|
|
|
/*
|
|
* Returns 1 if c is a hexadecimal digit, otherwise returns 0. Assumes c is an
|
|
* ASCII character.
|
|
*/
|
|
int isxdigit(int c);
|
|
|
|
#endif // CTYPE_H
|