Testcases
This commit is contained in:
parent
dc014441bc
commit
50fda65f4e
|
@ -6,7 +6,7 @@
|
|||
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/03/19 11:49:46 by tischmid #+# #+# */
|
||||
/* Updated: 2023/03/21 00:48:06 by tischmid ### ########.fr */
|
||||
/* Updated: 2023/03/21 09:44:10 by tischmid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
@ -26,11 +26,15 @@ unsigned int ft_strlcpy(char *dest, char *src, unsigned int size)
|
|||
|
||||
int main(void)
|
||||
{
|
||||
char buf[BUFSIZ];
|
||||
char buf2[10];
|
||||
char buf[2];
|
||||
char str[] = {'A','B','C','D','E','\0'};
|
||||
|
||||
ft_strlcpy(buf, str, 5);
|
||||
ft_strlcpy(buf, str, 6);
|
||||
printf("%p\n", buf);
|
||||
printf("%s\n", buf);
|
||||
printf("%p\n", buf2);
|
||||
printf("%s\n", buf2);
|
||||
return (0);
|
||||
}
|
||||
*/ ////
|
||||
|
|
Loading…
Reference in New Issue