pushswap/printf/tests/src/outputpointer.c

29 lines
1.1 KiB
C
Raw Normal View History

2023-03-07 05:42:47 +01:00
/* ************************************************************************** */
/* */
/* .--. _ */
/* outputpointer.c |o_o || | */
/* |:_/ || |_ _ ___ __ */
/* By: houtworm <codam@houtworm.net> // \ \ __| | | \ \/ / */
/* (| | )|_| |_| |> < */
/* Created: 2023/02/25 17:07:23 by houtworm /'\_ _/`\__|\__,_/_/\_\ */
/* Updated: 2023/03/01 22:39:54 by djonker \___)=(___/ */
/* */
/* ************************************************************************** */
#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);
}