-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathset_length_modifiers.c
More file actions
35 lines (31 loc) · 1.28 KB
/
set_length_modifiers.c
File metadata and controls
35 lines (31 loc) · 1.28 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
28
29
30
31
32
33
34
35
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* set_length_modifiers.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hiroshiusui <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/01/29 20:39:53 by hiroshius #+# #+# */
/* Updated: 2018/01/31 02:38:48 by hiroshius ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
static void set_types(char **new)
{
new[0] = "hh";
new[1] = "h";
new[2] = "l";
new[3] = "ll";
new[4] = "j";
new[5] = "z";
}
char **set_length_modifiers_array(void)
{
char **new;
int number_of_length_modifiers;
number_of_length_modifiers = 6;
new = malloc(sizeof(char **) * (number_of_length_modifiers + 1));
new[number_of_length_modifiers] = 0;
set_types(new);
return (new);
}