Skip to content

Commit

Permalink
libft
Browse files Browse the repository at this point in the history
  • Loading branch information
Ana Laura Da Silva Volkmann committed Apr 15, 2024
1 parent 2e1e97c commit 39f6d87
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
Binary file added a.out
Binary file not shown.
22 changes: 22 additions & 0 deletions ft_putchar_fd.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ana-lda- <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/15 09:48:10 by ana-lda- #+# #+# */
/* Updated: 2024/04/15 10:44:07 by ana-lda- ### ########.fr */
/* */
/* ************************************************************************** */

#include "libft.h"

void ft_putchar_fd(char c, int fd)
{
write (fd, &c, 1);
}
/*int main(void)
{
ft_putchar_fd('a', 1);
}*/
23 changes: 23 additions & 0 deletions ft_putstr_fd.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ana-lda- <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/15 09:55:50 by ana-lda- #+# #+# */
/* Updated: 2024/04/15 10:45:27 by ana-lda- ### ########.fr */
/* */
/* ************************************************************************** */

#include "libft.h"

void ft_putstr_fd(char *s, int fd)
{
while (*s)
write(fd, s++, 1);
}
/*int main(void)
{
ft_putstr_fd("ana", 1);
}*/

0 comments on commit 39f6d87

Please sign in to comment.