diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-01-17 10:56:16 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-01-17 10:56:16 +0100 |
| commit | fe37597119353ce183fc404417b81bd4702f64b7 (patch) | |
| tree | faa20a8352092c062e2fd272fff2104d9f2ddb3f /src/mem/ft_memchr.c | |
| parent | 2e5ca2ab6276b7b24895ade28e1533356ef523dc (diff) | |
| download | libft-fe37597119353ce183fc404417b81bd4702f64b7.tar.gz libft-fe37597119353ce183fc404417b81bd4702f64b7.tar.bz2 libft-fe37597119353ce183fc404417b81bd4702f64b7.zip | |
Splited include like src/, Adding feature toggle protection in header
Diffstat (limited to 'src/mem/ft_memchr.c')
| -rw-r--r-- | src/mem/ft_memchr.c | 8 |
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) |
