1
0

fixed libft

This commit is contained in:
2024-03-14 16:19:34 +01:00
parent 4ce51959ed
commit 0289baf535
4 changed files with 11 additions and 16 deletions

View File

@ -6,13 +6,13 @@
# By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/11/01 11:03:22 by adjoly #+# #+# #
# Updated: 2024/03/12 14:36:06 by adjoly ### ########.fr #
# Updated: 2024/03/12 15:04:46 by adjoly ### ########.fr #
# #
# **************************************************************************** #
NAME = libft.a
CC = cc
CC = clang
OBJSDIR = obj/

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/01 10:06:03 by adjoly #+# #+# */
/* Updated: 2024/03/04 09:06:35 by adjoly ### ########.fr */
/* Updated: 2024/03/12 14:43:11 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -99,4 +99,5 @@ int ft_putnbrbase_pf(unsigned int n, char *base);
int ft_putchar_p(char c);
int ft_putnbr_p(int n);
size_t ft_strlen(const char *s);
#endif

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/31 11:45:55 by adjoly #+# #+# */
/* Updated: 2024/02/04 15:23:52 by adjoly ### ########.fr */
/* Updated: 2024/03/12 15:05:16 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -14,9 +14,6 @@
int ft_putstr_p(char *s)
{
int i;
i = 0;
if (s == NULL)
{
write(1, "(null)", 6);

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/30 18:15:57 by adjoly #+# #+# */
/* Updated: 2024/02/04 15:10:15 by adjoly ### ########.fr */
/* Updated: 2024/03/12 15:07:08 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -14,13 +14,10 @@
size_t ft_strlen(const char *s)
{
size_t i;
const char *tmp;
i = 0;
while (*s)
{
s++;
i++;
}
return (i);
tmp = s;
while (*tmp)
tmp++;
return (tmp - s);
}