aboutsummaryrefslogtreecommitdiff
path: root/src/ctype
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-09-18 16:39:52 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-09-18 16:39:52 +0200
commitdd0c485ac4975b7dd6d2e230213be1da50d0a065 (patch)
tree5fbd967f8b95c72fbb696bb089c2cc349d28b61f /src/ctype
parent3c3f1115f6e9a9b914e2dcbd796501ca7ce85342 (diff)
downloadlibft-dd0c485ac4975b7dd6d2e230213be1da50d0a065.tar.gz
libft-dd0c485ac4975b7dd6d2e230213be1da50d0a065.tar.bz2
libft-dd0c485ac4975b7dd6d2e230213be1da50d0a065.zip
Removing unnecessary stuffmalloc
Diffstat (limited to 'src/ctype')
-rw-r--r--src/ctype/ft_isalnum.c18
-rw-r--r--src/ctype/ft_isalpha.c16
-rw-r--r--src/ctype/ft_isascii.c16
-rw-r--r--src/ctype/ft_isblank.c16
-rw-r--r--src/ctype/ft_isdigit.c16
-rw-r--r--src/ctype/ft_isprint.c16
-rw-r--r--src/ctype/ft_isspace.c19
-rw-r--r--src/ctype/ft_todigit.c20
-rw-r--r--src/ctype/ft_tolower.c24
-rw-r--r--src/ctype/ft_toupper.c20
10 files changed, 0 insertions, 181 deletions
diff --git a/src/ctype/ft_isalnum.c b/src/ctype/ft_isalnum.c
deleted file mode 100644
index 1ee1e0f..0000000
--- a/src/ctype/ft_isalnum.c
+++ /dev/null
@@ -1,18 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* ft_isalnum.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2019/10/07 09:41:40 by cacharle #+# #+# */
-/* Updated: 2019/10/07 09:41:56 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-#include "libft.h"
-
-int ft_isalnum(int c)
-{
- return (ft_isalpha(c) || ft_isdigit(c));
-}
diff --git a/src/ctype/ft_isalpha.c b/src/ctype/ft_isalpha.c
deleted file mode 100644
index 6f155b4..0000000
--- a/src/ctype/ft_isalpha.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* ft_isalpha.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2019/10/07 09:54:52 by cacharle #+# #+# */
-/* Updated: 2019/10/20 13:01:13 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-int ft_isalpha(int c)
-{
- return ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'));
-}
diff --git a/src/ctype/ft_isascii.c b/src/ctype/ft_isascii.c
deleted file mode 100644
index 12b6849..0000000
--- a/src/ctype/ft_isascii.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* ft_isascii.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2019/10/07 09:54:30 by cacharle #+# #+# */
-/* Updated: 2020/02/12 23:01:02 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-int ft_isascii(int c)
-{
- return (c >= 00 && c <= 0177);
-}
diff --git a/src/ctype/ft_isblank.c b/src/ctype/ft_isblank.c
deleted file mode 100644
index def106b..0000000
--- a/src/ctype/ft_isblank.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* ft_isblank.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2020/02/10 05:17:45 by cacharle #+# #+# */
-/* Updated: 2020/02/10 05:18:34 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-int ft_isblank(int c)
-{
- return (c == ' ' || c == '\t');
-}
diff --git a/src/ctype/ft_isdigit.c b/src/ctype/ft_isdigit.c
deleted file mode 100644
index f8a5850..0000000
--- a/src/ctype/ft_isdigit.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* ft_isdigit.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2019/10/07 10:41:20 by cacharle #+# #+# */
-/* Updated: 2019/10/07 10:41:25 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-int ft_isdigit(int c)
-{
- return (c >= '0' && c <= '9');
-}
diff --git a/src/ctype/ft_isprint.c b/src/ctype/ft_isprint.c
deleted file mode 100644
index c311709..0000000
--- a/src/ctype/ft_isprint.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* ft_isprint.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2019/10/07 09:52:09 by cacharle #+# #+# */
-/* Updated: 2019/10/20 13:03:36 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-int ft_isprint(int c)
-{
- return (c >= ' ' && c <= '~');
-}
diff --git a/src/ctype/ft_isspace.c b/src/ctype/ft_isspace.c
deleted file mode 100644
index 18b6dba..0000000
--- a/src/ctype/ft_isspace.c
+++ /dev/null
@@ -1,19 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* ft_isspace.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2020/01/15 11:33:36 by cacharle #+# #+# */
-/* Updated: 2020/01/15 11:35:07 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-#include "libft.h"
-
-int ft_isspace(int c)
-{
- return (c == ' ' || c == '\t' || c == '\n'
- || c == '\v' || c == '\f' || c == '\r');
-}
diff --git a/src/ctype/ft_todigit.c b/src/ctype/ft_todigit.c
deleted file mode 100644
index f201470..0000000
--- a/src/ctype/ft_todigit.c
+++ /dev/null
@@ -1,20 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* ft_todigit.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2020/01/15 10:37:57 by cacharle #+# #+# */
-/* Updated: 2020/02/12 23:11:55 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-#include "libft.h"
-
-int ft_todigit(int c)
-{
- if (!ft_isdigit(c))
- return (-1);
- return (c & 0x0F);
-}
diff --git a/src/ctype/ft_tolower.c b/src/ctype/ft_tolower.c
deleted file mode 100644
index 919469f..0000000
--- a/src/ctype/ft_tolower.c
+++ /dev/null
@@ -1,24 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* ft_tolower.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2019/10/07 10:14:26 by cacharle #+# #+# */
-/* Updated: 2019/11/20 01:04:02 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-/*
-** E: 0100 0101
-** e: 0110 0101
-** ^
-*/
-
-int ft_tolower(int c)
-{
- if (c >= 'A' && c <= 'Z')
- return (c | 0b00100000);
- return (c);
-}
diff --git a/src/ctype/ft_toupper.c b/src/ctype/ft_toupper.c
deleted file mode 100644
index 8579b91..0000000
--- a/src/ctype/ft_toupper.c
+++ /dev/null
@@ -1,20 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* ft_toupper.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2019/10/07 10:14:10 by cacharle #+# #+# */
-/* Updated: 2019/11/20 01:04:51 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-#include "libft.h"
-
-int ft_toupper(int c)
-{
- if (c >= 'a' && c <= 'z')
- return (c ^ 0b00100000);
- return (c);
-}