pushswap/printf/tests/src/outputpointer.c

29 lines
1.1 KiB
C
Raw Normal View History

2023-03-07 05:42:47 +01:00
/* ************************************************************************** */
/* */
2023-10-26 19:09:02 +02:00
/* :::::::: */
/* 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 */
2023-03-07 05:42:47 +01:00
/* */
/* ************************************************************************** */
#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);
}