BUFSIZE for ex00

This commit is contained in:
Timo Schmidt 2023-03-24 01:05:53 +01:00
parent 2111fa0022
commit 5b8f97bba1
1 changed files with 3 additions and 2 deletions

View File

@ -6,7 +6,7 @@
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */ /* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/19 05:59:56 by tischmid #+# #+# */ /* Created: 2023/03/19 05:59:56 by tischmid #+# #+# */
/* Updated: 2023/03/19 06:04:51 by tischmid ### ########.fr */ /* Updated: 2023/03/24 01:05:46 by tischmid ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -23,10 +23,11 @@ char *ft_strcpy(char *s1, char *s2)
/* //// /* ////
#include <stdio.h> #include <stdio.h>
#define BUFSIZE 10
int main(void) int main(void)
{ {
char s1[10]; char s1[BUFSIZE];
ft_strcpy(s1, "0123456789"); ft_strcpy(s1, "0123456789");
printf("%s\n", s1); printf("%s\n", s1);