refactor: make check_args function static

BREAKING CHANGE: function my_function is no longer exported
This commit is contained in:
Raphael 2025-09-04 12:01:21 +02:00
parent 57a5156fcd
commit df67357056
No known key found for this signature in database

View file

@ -6,7 +6,7 @@
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */ /* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/14 17:27:44 by rparodi #+# #+# */ /* Created: 2023/11/14 17:27:44 by rparodi #+# #+# */
/* Updated: 2025/09/04 11:46:29 by rparodi ### ########.fr */ /* Updated: 2025/09/04 11:56:27 by rparodi ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -22,7 +22,7 @@ void _print_base(\
void _print_unsigned(int fd, unsigned int nb, int *ret); void _print_unsigned(int fd, unsigned int nb, int *ret);
void _print_str(int fd, char *str, int *ret); void _print_str(int fd, char *str, int *ret);
int _check_args(int fd, char c, va_list args, int *ret) static int _check_args(int fd, char c, va_list args, int *ret)
{ {
if (c == 'c') if (c == 'c')
_print_char(fd, (char)va_arg(args, int), ret); _print_char(fd, (char)va_arg(args, int), ret);