purge ancien files et mise a jour libftH
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2019/11/25 13:59:01 by hulamy #+# #+# */
|
||||
/* Updated: 2019/11/25 13:59:21 by hulamy ### ########.fr */
|
||||
/* Updated: 2019/11/25 14:21:01 by hulamy ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
|
||||
/*
|
||||
** #include <libc.h>
|
||||
**
|
||||
**
|
||||
** char *ft_itoa(int n)
|
||||
**
|
||||
**
|
||||
** int main(int ac, char **av)
|
||||
** {
|
||||
** if (ac == 2)
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2019/11/25 14:01:40 by hulamy #+# #+# */
|
||||
/* Updated: 2019/11/25 14:01:45 by hulamy ### ########.fr */
|
||||
/* Updated: 2019/11/25 14:19:43 by hulamy ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -15,13 +15,13 @@
|
||||
** s by index i
|
||||
*/
|
||||
|
||||
/*
|
||||
/*
|
||||
** #include <libc.h>
|
||||
**
|
||||
**
|
||||
** size_t ft_strlen(const char *str)
|
||||
** {
|
||||
** size_t i;
|
||||
**
|
||||
**
|
||||
** i = 0;
|
||||
** while (str[i])
|
||||
** i++;
|
||||
@@ -33,14 +33,14 @@
|
||||
** c -= 32;
|
||||
** return (c);
|
||||
** }
|
||||
**
|
||||
**
|
||||
** char *ft_strmapi(char const *s, char (*f)(unsigned int, char));
|
||||
**
|
||||
**
|
||||
** int main(int ac, char **av)
|
||||
** {
|
||||
** char *str;
|
||||
** char touppercase(unsigned int, char);
|
||||
**
|
||||
**
|
||||
** if (ac != 2)
|
||||
** return (0);
|
||||
** str = av[1];
|
||||
@@ -49,7 +49,7 @@
|
||||
** printf("%s\n",str);
|
||||
** return (0);
|
||||
** }
|
||||
*/
|
||||
*/
|
||||
|
||||
#include "libft.h"
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2019/11/25 14:01:49 by hulamy #+# #+# */
|
||||
/* Updated: 2019/11/25 14:01:54 by hulamy ### ########.fr */
|
||||
/* Updated: 2019/11/25 14:20:41 by hulamy ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -14,14 +14,14 @@
|
||||
** create a copy of s without the firsts and lasts empty characters
|
||||
*/
|
||||
|
||||
/*
|
||||
/*
|
||||
** #include <libc.h>
|
||||
**
|
||||
**
|
||||
** char *ft_substr(char const *s, unsigned int start, size_t len)
|
||||
** {
|
||||
** char *str;
|
||||
** size_t i;
|
||||
**
|
||||
**
|
||||
** if (!s)
|
||||
** return (NULL);
|
||||
** if (!(str = (char *)malloc(sizeof(char) * (len + 1))))
|
||||
@@ -32,22 +32,22 @@
|
||||
** str[i++] = s[start++];
|
||||
** return (str);
|
||||
** }
|
||||
**
|
||||
**
|
||||
** size_t ft_strlen(const char *str)
|
||||
** {
|
||||
** size_t i;
|
||||
**
|
||||
**
|
||||
** i = 0;
|
||||
** while (str[i])
|
||||
** i++;
|
||||
** return (i);
|
||||
** }
|
||||
**
|
||||
**
|
||||
** char *ft_strchr(const char *s, int c)
|
||||
** {
|
||||
** int i;
|
||||
** int j;
|
||||
**
|
||||
**
|
||||
** i = 0;
|
||||
** j = -1;
|
||||
** while (s[i])
|
||||
@@ -57,17 +57,17 @@
|
||||
** return ((char *)s + j);
|
||||
** return (NULL);
|
||||
** }
|
||||
**
|
||||
**
|
||||
** char *ft_strtrim(char const *s1, char const *set);
|
||||
**
|
||||
**
|
||||
** int main(int ac, char **av)
|
||||
** {
|
||||
** if (ac == 3)
|
||||
** printf("%s\n",ft_strtrim(av[1], av[2]));
|
||||
**
|
||||
**
|
||||
** return (0);
|
||||
** }
|
||||
*/
|
||||
*/
|
||||
|
||||
#include "libft.h"
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2019/11/25 14:01:58 by hulamy #+# #+# */
|
||||
/* Updated: 2019/11/25 14:02:01 by hulamy ### ########.fr */
|
||||
/* Updated: 2019/11/25 14:19:11 by hulamy ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -14,22 +14,22 @@
|
||||
** create a copy of a portion of s, begining at start and of length len
|
||||
*/
|
||||
|
||||
/*
|
||||
/*
|
||||
** #include <libc.h>
|
||||
**
|
||||
**
|
||||
** char *ft_substr(char const *s, unsigned int start, size_t len);
|
||||
**
|
||||
**
|
||||
** int main(int ac, char **av)
|
||||
** {
|
||||
** char *str;
|
||||
**
|
||||
**
|
||||
** if (ac != 4)
|
||||
** return (0);
|
||||
** str = ft_substr(av[1], atoi(av[2]), atoi(av[3]));
|
||||
** printf("%s\n",str);
|
||||
** return (0);
|
||||
** }
|
||||
*/
|
||||
*/
|
||||
|
||||
#include "libft.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user