Compare commits
9
Commits
main
..
4880387cbc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4880387cbc | ||
|
|
f83d51acb2 | ||
|
|
ff947e06a1 | ||
|
|
6d6f12e8d0 | ||
|
|
4023f0fc25 | ||
|
|
518382d0a0 | ||
|
|
edc4b6cfd8 | ||
|
|
f5663b79e5 | ||
|
|
52fc0e669d |
+6
-6
@@ -6,7 +6,7 @@
|
||||
/* By: lclerel- <lclerel-@learner.42.tech> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/03/16 14:01:43 by lclerel- #+# #+# */
|
||||
/* Updated: 2026/03/19 19:19:38 by lclerel- ### ########.fr */
|
||||
/* Updated: 2026/03/19 11:37:45 by lclerel- ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -21,10 +21,10 @@ char *ft_strdup(char *src)
|
||||
|
||||
i = 0;
|
||||
len = 0;
|
||||
if (src == NULL)
|
||||
return (NULL);
|
||||
while (src[len])
|
||||
{
|
||||
len++;
|
||||
}
|
||||
dst = malloc(sizeof(char) * (len + 1));
|
||||
if (dst == NULL)
|
||||
{
|
||||
@@ -39,8 +39,8 @@ char *ft_strdup(char *src)
|
||||
return (dst);
|
||||
}
|
||||
|
||||
|
||||
/*void ft_putchar(char chara)
|
||||
/*
|
||||
void ft_putchar(char chara)
|
||||
{
|
||||
write(1, &chara, 1);
|
||||
}
|
||||
@@ -61,7 +61,7 @@ int main(void)
|
||||
{
|
||||
char *dest;
|
||||
|
||||
dest = ft_strdup(NULL);
|
||||
dest = ft_strdup("TestTest");
|
||||
|
||||
if (dest == NULL)
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/* By: lclerel- <lclerel-@learner.42.tech> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/03/16 16:07:45 by lclerel- #+# #+# */
|
||||
/* Updated: 2026/03/19 19:23:18 by lclerel- ### ########.fr */
|
||||
/* Updated: 2026/03/19 14:02:24 by lclerel- ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -40,8 +40,8 @@ int ft_ultimate_range(int **range, int min, int max)
|
||||
*range = tab;
|
||||
return (size);
|
||||
}
|
||||
/*
|
||||
void ft_putchar(char c)
|
||||
|
||||
/*void ft_putchar(char c)
|
||||
{
|
||||
write(1, &c, 1);
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
/* By: lclerel- <lclerel-@learner.42.tech> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/03/16 16:37:56 by lclerel- #+# #+# */
|
||||
/* Updated: 2026/03/19 19:24:56 by lclerel- ### ########.fr */
|
||||
/* Updated: 2026/03/19 11:38:19 by lclerel- ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/*void ft_putstr(char *str);*/
|
||||
void ft_putstr(char *str);
|
||||
|
||||
int ft_strlen(char *str);
|
||||
|
||||
|
||||
+4
-4
@@ -6,7 +6,7 @@
|
||||
/* By: lclerel- <lclerel-@learner.42.tech> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/03/18 10:29:59 by lclerel- #+# #+# */
|
||||
/* Updated: 2026/03/19 19:27:27 by lclerel- ### ########.fr */
|
||||
/* Updated: 2026/03/19 11:47:13 by lclerel- ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -93,13 +93,13 @@ char **ft_split(char *str, char *charset)
|
||||
res[j] = 0;
|
||||
return (res);
|
||||
}
|
||||
/*
|
||||
int main(void)
|
||||
|
||||
/*int main(void)
|
||||
{
|
||||
char **res;
|
||||
int i;
|
||||
int j;
|
||||
res = ft_split("Ceci Est+Un+Test^Fait/Par&Lumi.", "+-^/&");
|
||||
res = ft_split("Ceci Est+Un-Test^Fait/Par&Lumi.", " ^+/-*&");
|
||||
i = 0;
|
||||
write(1, "Test avec : Ceci Est+Un-Test^Fait/Par&Lumi. : \n", 47);
|
||||
while (res[i])
|
||||
|
||||
Reference in New Issue
Block a user