-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_isalpha.c
More file actions
31 lines (28 loc) · 1.45 KB
/
ft_isalpha.c
File metadata and controls
31 lines (28 loc) · 1.45 KB
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ccarnot <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/05/02 11:39:41 by ccarnot #+# #+# */
/* Updated: 2023/06/02 11:41:16 by ccarnot ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/******************************************************************************************************
* Function: isalpha
* Library: <ctype.h>
* Description: Determines whether a character is alphabetic.
* Memory allocations: None
* Crash values: None
* Return values: Non-zero value (usually 1) if the character is alphabetic
* 0 otherwise.
******************************************************************************************************/
int ft_isalpha(int c)
{
if ((c > 64 && c < 91) || (c > 96 && c < 123))
return (1);
else
return (0);
}