Bonus preparartion

This commit is contained in:
David Gailleton
2025-11-19 15:14:53 +01:00
parent 836eea81e1
commit 66878549eb
12 changed files with 297 additions and 122 deletions

18
bonus/print_char_bonus.c Normal file
View File

@@ -0,0 +1,18 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* print_char.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dgaillet <dgaillet@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/11/17 11:56:36 by dgaillet #+# #+# */
/* Updated: 2025/11/17 12:45:57 by dgaillet ### ########lyon.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
int print_char(char c)
{
return (write(1, &c, 1));
}