xref: /optee_os/lib/libutils/isoc/isalpha.c (revision 62f21181c547da3bd098908300e5699e9ae5cca9)
1 // SPDX-License-Identifier: BSD-2-Clause
2 /*
3  * Copyright (c) 2018, Linaro Limited
4  */
5 #include <ctype.h>
6 
7 int __builtin_isalpha(int c)
8 {
9 	if (c >= 'A' && c <= 'Z')
10 		return 1;
11 	if (c >= 'a' && c <= 'z')
12 		return 1;
13 	return 0;
14 }
15