2023-10-25 13:56:45 +02:00
|
|
|
/* ************************************************************************** */
|
|
|
|
/* */
|
2023-10-26 19:11:30 +02:00
|
|
|
/* :::::::: */
|
|
|
|
/* test13.c :+: :+: */
|
|
|
|
/* +:+ */
|
|
|
|
/* By: houtworm <codam@houtworm.net> +#+ */
|
|
|
|
/* +#+ */
|
|
|
|
/* Created: 2023/02/21 03:00:42 by houtworm #+# #+# */
|
|
|
|
/* Updated: 2023/10/18 17:10:20 by houtworm ######## odam.nl */
|
2023-10-25 13:56:45 +02:00
|
|
|
/* */
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
|
|
|
#include "../../tmp/libft.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
int r;
|
|
|
|
char *dst;
|
|
|
|
|
|
|
|
r = 0;
|
|
|
|
dst = malloc(8 * 6);
|
|
|
|
strcpy(dst, "Olleh");
|
|
|
|
ft_memmove(dst, NULL, 1);
|
|
|
|
if (strncmp(dst, "Olleh", 6))
|
|
|
|
r = 1;
|
|
|
|
free (dst);
|
|
|
|
return (r);
|
|
|
|
}
|