skeletton untested project
This commit is contained in:
commit
6fc620e8f4
187 changed files with 6584 additions and 0 deletions
26
libft/ft_putstr_fd.c
Executable file
26
libft/ft_putstr_fd.c
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_putstr_fd.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: thrieg <thrieg@student.42mulhouse.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/10/15 17:31:53 by thrieg #+# #+# */
|
||||
/* Updated: 2025/02/16 19:04:24 by thrieg ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "libft.h"
|
||||
|
||||
//returns without doing anything if lst or new are NULL, this is dumb because we
|
||||
//can't report the error given the prototyping but I'm not taking any risk for
|
||||
//my 3th retry...
|
||||
void ft_putstr_fd(char *s, int fd)
|
||||
{
|
||||
size_t len;
|
||||
|
||||
if (!s)
|
||||
return ;
|
||||
len = ft_strlen(s);
|
||||
write(fd, s, len);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue