memtest86plus/lib/ctype.h

32 lines
636 B
C
Raw Normal View History

2020-05-24 15:30:55 -05:00
// SPDX-License-Identifier: GPL-2.0
#ifndef CTYPE_H
#define CTYPE_H
/**
* \file
*
2020-05-24 15:30:55 -05:00
* Provides a subset of the functions normally provided by <ctype.h>.
*
*//*
* Copyright (C) 2020-2022 Martin Whitaker.
2020-05-24 15:30:55 -05:00
*/
/**
2020-05-24 15:30:55 -05:00
* 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);
/**
2020-05-24 15:30:55 -05:00
* Returns 1 if c is a decimal digit, otherwise returns 0. Assumes c is an
* ASCII character.
*/
int isdigit(int c);
/**
2020-05-24 15:30:55 -05:00
* Returns 1 if c is a hexadecimal digit, otherwise returns 0. Assumes c is an
* ASCII character.
*/
int isxdigit(int c);
#endif // CTYPE_H