-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ana Laura Da Silva Volkmann
committed
Apr 15, 2024
1 parent
2e1e97c
commit 39f6d87
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}*/ |