This commit is contained in:
mcolonna 2024-04-24 22:02:42 +02:00
parent e5371d0197
commit e438fea669
434 changed files with 41314 additions and 14135 deletions

View file

@ -20,10 +20,10 @@ O_FILES = $(addsuffix .o,$(addprefix $(SRCS),$(CODE)))
PRINTF_C_FILES = $(addsuffix .c,$(addprefix $(PRINTF_SRCS),$(PRINTF_CODE)))
PRINTF_O_FILES = $(addsuffix .o,$(addprefix $(PRINTF_SRCS),$(PRINTF_CODE)))
ifdef DEBUG
CC = cc -Wall -Wextra -Werror -g
CC = x86_64-w64-mingw32-gcc -Wall -Wextra -Werror -g
FINISH_MSG = "| $(WHAT) compiled! (debug)"
else
CC = cc -Wall -Wextra -Werror
CC = x86_64-w64-mingw32-gcc -Wall -Wextra -Werror
FINISH_MSG = "| $(WHAT) compiled!"
endif
AR = ar rcs

View file

@ -6,7 +6,7 @@
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/18 13:21:09 by mcolonna #+# #+# */
/* Updated: 2024/02/12 12:58:11 by mcolonna ### ########.fr */
/* Updated: 2024/04/23 20:33:36 by mcolonna ### ########.fr */
/* */
/* ************************************************************************** */
@ -58,7 +58,7 @@ int put_pointer(va_list args)
return (5);
}
write(1, "0x", 2);
str = ft_utoa_base((unsigned long)arg, "0123456789abcdef");
str = ft_utoa_base((unsigned long long)arg, "0123456789abcdef");
if (!str)
return (-1);
write(1, str, str_len(str));