pushswap/printf/tests/src/outputpointer.c
2023-10-26 19:09:02 +02:00

29 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* :::::::: */
/* outputpointer.c :+: :+: */
/* +:+ */
/* By: houtworm <codam@houtworm.net> +#+ */
/* +#+ */
/* Created: 2023/10/26 18:41:29 by houtworm #+# #+# */
/* Updated: 2023/10/26 18:41:30 by houtworm ######## odam.nl */
/* */
/* ************************************************************************** */
#include "../tmp/ft_printf.h"
#include <stdio.h>
#include <string.h>
int main(int argc, char **argv)
{
char *s;
alarm(5);
s = strdup(argv[2]);
ft_printf(argv[1], s);
ft_printf("\n");
printf(argv[1], s);
free(s);
return (0);
}