summaryrefslogtreecommitdiff
path: root/libft/ft_isprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'libft/ft_isprint.c')
-rw-r--r--libft/ft_isprint.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/libft/ft_isprint.c b/libft/ft_isprint.c
new file mode 100644
index 0000000..65226a0
--- /dev/null
+++ b/libft/ft_isprint.c
@@ -0,0 +1,18 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_isprint.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: kdx <kdx @student.42angouleme.fr +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2022/09/26 13:40:45 by kdx #+# #+# */
+/* Updated: 2022/09/26 17:19:40 by kdx ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#include "libft.h"
+
+int ft_isprint(int c)
+{
+ return (c >= ' ' && c <= '~');
+}