libft
Loading...
Searching...
No Matches
ft_check.h
Go to the documentation of this file.
1
19#ifndef FT_CHECK_H
20#define FT_CHECK_H
21
22#include <stdbool.h>
23#include <limits.h>
24
51// ─────────────────────────────────────────────────────────────
52// Character checks (drop-in replacements for <ctype.h>)
53// ─────────────────────────────────────────────────────────────
54int ft_isalnum(int c);
55int ft_isalpha(int c);
56int ft_isascii(int c);
57int ft_isdigit(int c);
58int ft_isprint(int c);
59int ft_ispunct(int c);
60int ft_isspace(int c);
61int ft_islower(int c);
62int ft_isupper(int c);
63int ft_issign(int c);
64
65// ─────────────────────────────────────────────────────────────
66// String validation helpers
67// ─────────────────────────────────────────────────────────────
69 const char* str);
71 const char* str);
72
// end of char_check group
74
75#endif
int ft_isupper(int c)
Uppercase letter.
Definition char_check.c:86
int ft_islower(int c)
Lowercase letter.
Definition char_check.c:74
int ft_isdigit(int c)
Decimal digit (0–9)
Definition char_check.c:38
bool ft_is_valid_integer(const char *str)
Validates C-style signed integer string format.
Definition ft_is_valid_integer.c:75
bool ft_isstrpositive(const char *str)
Checks if string contains only digits and is > 0.
Definition char_check.c:152
int ft_issign(int c)
'+' or '-'
Definition char_check.c:137
int ft_isspace(int c)
Whitespace (space, tab, newline, etc.)
Definition char_check.c:125
int ft_isalnum(int c)
Alphanumeric character.
Definition char_check.c:62
int ft_isprint(int c)
Printable character (including space)
Definition char_check.c:98
int ft_isascii(int c)
ASCII character (0–127)
Definition char_check.c:26
int ft_isalpha(int c)
Alphabetic character.
Definition char_check.c:50
int ft_ispunct(int c)
Printable non-alphanumeric (e.g., punctuation)
Definition char_check.c:110