33 lines
1.1 KiB
C
33 lines
1.1 KiB
C
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* .--. _ */
|
||
|
/* test9.c |o_o || | */
|
||
|
/* |:_/ || |_ _ ___ __ */
|
||
|
/* By: houtworm <codam@houtworm.net> // \ \ __| | | \ \/ / */
|
||
|
/* (| | )|_| |_| |> < */
|
||
|
/* Created: 2023/02/21 03:02:18 by houtworm /'\_ _/`\__|\__,_/_/\_\ */
|
||
|
/* Updated: 2023/02/28 17:09:23 by houtworm \___)=(___/ */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
#include "../../tmp/libft.h"
|
||
|
#include <stdio.h>
|
||
|
#include <string.h>
|
||
|
|
||
|
int main(void)
|
||
|
{
|
||
|
int r;
|
||
|
char *dst;
|
||
|
char *src;
|
||
|
|
||
|
r = 0;
|
||
|
dst = NULL;
|
||
|
src = malloc(8 * 7);
|
||
|
strcpy(src, "123456");
|
||
|
ft_memcpy(dst, src, 7);
|
||
|
if (dst)
|
||
|
r = 1;
|
||
|
free (src);
|
||
|
return (r);
|
||
|
}
|