fix putnbr - poor operational priority

This commit is contained in:
KeyZox committed 2023-11-03 19:49:13 +01:00
1 parent e480e15ee4
commit 8b198b5952
3 files changed
+5 -9

No files matched your search

+2 -2
View File
@@ -6,13 +6,13 @@
# By: adjoly <adjoly@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/11/01 11:03:22 by adjoly #+# #+# #
# Updated: 2023/11/03 11:59:46 by adjoly ### ########.fr #
# Updated: 2023/11/03 19:10:18 by adjoly ### ########.fr #
# #
# **************************************************************************** #
NAME = libft.a
CC = cc
CC = clang
SRCS = ft_atoi.c \
ft_bzero.c \
+2 -7
View File
@@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/31 11:52:46 by adjoly #+# #+# */
/* Updated: 2023/11/03 11:54:29 by adjoly ### ########.fr */
/* Updated: 2023/11/03 19:17:27 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@@ -28,11 +28,6 @@ void ft_putnbr_fd(int n, int fd)
else
{
ft_putnbr_fd(nbr / 10, fd);
write(fd, &(char){(nbr + '0') % 10}, 1);
write(fd, &(char){nbr % 10 + '0'}, 1);
}
}
// int main(void)
// {
// ft_putnbr_fd(10, 1);
// }
Submodule
+1
Submodule libftTester added at 8aeba50f11.