-
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
Cosme Portuondo Barcena
committed
Oct 10, 2022
1 parent
bcf4634
commit 90d2176
Showing
7 changed files
with
84 additions
and
9 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 |
---|---|---|
@@ -1,3 +1,15 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* ft_printf.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: cportuon <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2022/10/10 09:31:12 by cportuon #+# #+# */ | ||
/* Updated: 2022/10/10 09:32:39 by cportuon ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
#include <unistd.h> | ||
|
||
void ft_print_c(char c) | ||
|
@@ -11,7 +23,7 @@ void ft_print_str(char *str) | |
unsigned int i; | ||
|
||
i = 0; | ||
while(str[i] != '\0') | ||
while (str[i] != '\0') | ||
{ | ||
write(1, &str[i], 1); | ||
i++; | ||
|
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 |
---|---|---|
@@ -1,3 +1,15 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* ft_putchar.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: cportuon <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2022/10/10 09:30:38 by cportuon #+# #+# */ | ||
/* Updated: 2022/10/10 09:31:26 by cportuon ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
#include "libftprintf.h" | ||
|
||
void ft_putchar(char c) | ||
|
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,13 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* ft_puthexa.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: cportuon <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2022/10/10 09:49:51 by cportuon #+# #+# */ | ||
/* Updated: 2022/10/10 09:49:53 by cportuon ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
|
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,13 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* ft_putnbr.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: cportuon <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2022/10/10 09:49:01 by cportuon #+# #+# */ | ||
/* Updated: 2022/10/10 09:49:03 by cportuon ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
|
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 |
---|---|---|
@@ -1,13 +1,25 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* ft_putstr.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: cportuon <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2022/10/10 09:32:13 by cportuon #+# #+# */ | ||
/* Updated: 2022/10/10 09:32:25 by cportuon ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
#include "libftprintf.h" | ||
|
||
int ft_putstr(char *str) | ||
{ | ||
unsigned int i; | ||
|
||
i = 0; | ||
while(str[i] != '\0') | ||
while (str[i] != '\0') | ||
{ | ||
write(1, &str[i], 1); | ||
i++; | ||
} | ||
} | ||
} |
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,13 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* ft_strlen.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: cportuon <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2022/10/10 09:50:43 by cportuon #+# #+# */ | ||
/* Updated: 2022/10/10 09:50:44 by cportuon ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
|
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