aboutsummaryrefslogtreecommitdiff
path: root/src/mem/ft_memchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/ft_memchr.c')
-rw-r--r--src/mem/ft_memchr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mem/ft_memchr.c b/src/mem/ft_memchr.c
index d2364db..27e9028 100644
--- a/src/mem/ft_memchr.c
+++ b/src/mem/ft_memchr.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/07 09:55:31 by cacharle #+# #+# */
-/* Updated: 2019/11/20 03:30:55 by cacharle ### ########.fr */
+/* Updated: 2020/01/17 10:53:57 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -14,10 +14,10 @@
void *ft_memchr(const void *s, int c, size_t n)
{
- size_t i;
- t_byte *cast_s;
+ size_t i;
+ t_ftbyte *cast_s;
- cast_s = (t_byte*)s;
+ cast_s = (t_ftbyte*)s;
i = -1;
while (++i < n)
if (cast_s[i] == (unsigned char)c)