c_piscine__offshore_mains/c03/ex02.c
2023-11-30 23:05:07 +04:00

46 lines
1.4 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ex02.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: achubuko <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/30 19:58:12 by achubuko #+# #+# */
/* Updated: 2023/11/30 23:04:17 by achubuko ### ########.fr */
/* */
/* ************************************************************************** */
#include <tests.h>
#define TESTS_RETURN_PRINTF "%p"
char *ft_strcat(char *dest, char *src);
int main(void)
{
TEST_SEED(char);
printf("initial strings:\n");
dump(s, TEST_SOURCE_LENGHT);
dump(d, TEST_DESTINATION_LENGHT);
r1 = strcat(d1, s1);
r2 = ft_strcat(d2, s2);
TEST_SYNOPSIS("strcat(d, s)", s, d, s1, d1, s2, d2);
r1 = strcat(d1, s1);
r2 = ft_strcat(d2, s2);
TEST_SYNOPSIS("strcat(d, s)", s, d, s1, d1, s2, d2);
r1 = strcat(s1, d1);
r2 = ft_strcat(s2, d2);
TEST_SYNOPSIS("strcat(s, d)", s, d, s1, d1, s2, d2);
}
void setUp(void)
{
}
void tearDown(void)
{
}