-
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
Showing
5 changed files
with
57 additions
and
7 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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
# By: thifranc <[email protected]> +#+ +:+ +#+ # | ||
# +#+#+#+#+#+ +#+ # | ||
# Created: 2016/02/04 19:24:34 by thifranc #+# #+# # | ||
# Updated: 2017/10/19 11:07:09 by thifranc ### ########.fr # | ||
# Updated: 2017/11/28 19:22:00 by thifranc ### ########.fr # | ||
# # | ||
# **************************************************************************** # | ||
|
||
|
@@ -18,17 +18,17 @@ SRC = atoi itoa ptrf\ | |
memalloc bzero memccpy memchr memset\ | ||
memmove memcmp memcpy memdel\ | ||
putnb_base putendl putendl_fd\ | ||
putnbr putnbr_fd putstr putstr_fd\ | ||
putnbr putnbr_fd putstr putstr_fd putstrdel\ | ||
putchar putchar_fd write_fd\ | ||
strcat striter strncpy strtrim\ | ||
strchr striteri strnequ\ | ||
strlcat strclr strjoin strnew\ | ||
strcmp strlen strnstr\ | ||
strcmpi strcmp strlen strnstr\ | ||
strcpy strmap strrchr\ | ||
strdel strmapi strsplit\ | ||
strdup strncat strstr\ | ||
strequ strncmp strsub\ | ||
tolower isalnum toupper isalpha\ | ||
strlower tolower isalnum toupper isalpha\ | ||
isascii isdigit isprint\ | ||
lstadd lstnew lstdelone lstiter lstmap lstdel\ | ||
get_char\ | ||
|
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,20 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* ft_putstr.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: thifranc <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2016/02/16 09:14:52 by thifranc #+# #+# */ | ||
/* Updated: 2017/11/28 19:38:28 by thifranc ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
#include "libft.h" | ||
|
||
void ft_putstrdel(char const *s) | ||
{ | ||
write(1, s, ft_strlen(s)); | ||
free((void *)s); | ||
s = NULL; | ||
} |
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 |
---|---|---|
|
@@ -6,13 +6,13 @@ | |
/* By: thifranc <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2016/02/14 11:35:35 by thifranc #+# #+# */ | ||
/* Updated: 2017/10/30 17:18:07 by thifranc ### ########.fr */ | ||
/* Updated: 2017/10/30 17:21:11 by thifranc ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
#include "libft.h" | ||
|
||
int ft_strcmp(const char *s1, const char *s2) | ||
int ft_strcmpi(const char *s1, const char *s2) | ||
{ | ||
unsigned int 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,28 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* ft_strlower.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: thifranc <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2017/10/30 17:23:15 by thifranc #+# #+# */ | ||
/* Updated: 2017/10/30 17:38:43 by thifranc ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
#include "libft.h" | ||
|
||
char *ft_strlower(char *s) | ||
{ | ||
int i; | ||
|
||
i = 0; | ||
if (!s) | ||
return (NULL); | ||
while (s[i]) | ||
{ | ||
s[i] = ft_tolower(s[i]); | ||
i++; | ||
} | ||
return (s); | ||
} |
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
/* By: thifranc <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2016/02/19 10:07:41 by thifranc #+# #+# */ | ||
/* Updated: 2017/10/30 17:14:52 by thifranc ### ########.fr */ | ||
/* Updated: 2017/11/28 19:22:00 by thifranc ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
|
@@ -77,6 +77,7 @@ void ft_putnb_base(int n, char *base); | |
void ft_putnbr_fd(int n, int fd); | ||
void ft_putstr(char const *s); | ||
void ft_putstr_fd(char const *s, int fd); | ||
void ft_putstrdel(char const *s); | ||
char **ft_realloc(char **var, int add, int del); | ||
char *ft_strcat(char *s1, const char *s2); | ||
size_t ft_strlcat(char *dst, const char *src, size_t size); | ||
|
@@ -109,6 +110,7 @@ char *ft_strsub(char const *s, unsigned int start, size_t len); | |
char *ft_strtrim(char const *s); | ||
void ft_swap(void **a, void **b); | ||
void ft_tabnew(int *itab, int size); | ||
char *ft_strlower(char *s); | ||
int ft_tolower(int c); | ||
int ft_toupper(int c); | ||
void ft_write_fd(char *str, int fd); | ||
|