-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_printf.c
More file actions
27 lines (24 loc) · 1.26 KB
/
Copy pathtest_printf.c
File metadata and controls
27 lines (24 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* test_printf.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gwoodwar <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/12/09 16:08:34 by gwoodwar #+# #+# */
/* Updated: 2015/12/16 16:11:35 by gwoodwar ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdio.h>
#include "includes/ft_printf.h"
int main(void)
{
char buf[3] = {'a','b','\0'};
int i = printf("\nTest real : %-+ 10p WOOD", &buf);
int j = ft_printf("\nTEST mine : %-+ 10p WOOD", &buf);
i = printf("\nTest real : %#+10x WOOD", 1234);
j = ft_printf("\nTEST mine : %#+10x WOOD", 1234);
printf("Ret Value real : %d\n", i);
printf("Ret Value mine : %d\n", j);
return (0);
}