tgrekov-ft_printf
HIVE printf Feb 2024
Loading...
Searching...
No Matches
subspec.h
Go to the documentation of this file.
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* subspec.h :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2023/12/20 19:20:17 by tgrekov #+# #+# */
9/* Updated: 2024/02/13 06:52:53 by tgrekov ### ########.fr */
10/* */
11/* ************************************************************************** */
12
20#ifndef SUBSPEC_H
21# define SUBSPEC_H
22
27typedef enum e_lenmod
28{
29 none = 0,
30 hh = 1,
31 h = 2,
32 l = 3,
33 ll = 4,
34 j = 5,
35 z = 6,
36 t = 7,
38
74
75#endif
Holds subspecifier options for a format specifier.
Definition subspec.h:65
int precision
Minimum number of digits to be printed, or maximum characters for strings.
Definition subspec.h:71
int min_width
Minimum number of characters to be printed.
Definition subspec.h:70
char force_decimal
1 or 0, whether or not to prefix octals or hexadecimals with their respective prefixes....
Definition subspec.h:68
char * forced_sign
String to print before the value. Set before preprocessing for a format handler. Will be overriden,...
Definition subspec.h:67
t_lenmod lenmod
Represents the length modifiers for a format specifier's variable argument.
Definition subspec.h:72
char left_justify
1 or 0, whether padding should left justify.
Definition subspec.h:66
char * pad_str
String used when padding values.
Definition subspec.h:69
enum e_lenmod t_lenmod
Represents the length modifiers for a format specifier's variable argument.
e_lenmod
Represents the length modifiers for a format specifier's variable argument.
Definition subspec.h:28
struct s_subspec t_subspec
Holds subspecifier options for a format specifier.