tgrekov-ft_printf
HIVE printf Feb 2024
Loading...
Searching...
No Matches
sequence.h
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* sequence.h :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2024/01/09 19:46:53 by tgrekov #+# #+# */
9/* Updated: 2024/02/11 23:41:34 by tgrekov ### ########.fr */
10/* */
11/* ************************************************************************** */
12
13#ifndef SEQUENCE_H
14# define SEQUENCE_H
15
16# include <unistd.h>
17# include "../utils/internal_types.h"
18
19typedef struct s_sequence
20{
21 char specifier;
22 char *sign;
24 int total_len;
25 int (*process)(struct s_sequence, int *, int);
27
28#endif
struct s_sequence t_sequence
Holds information regarding the current format specifier sequence.
unsigned long long t_ubiggest
Convenience typedef for largest unsigned type I need to handle.
Holds information regarding the current format specifier sequence.
Definition sequence.h:49
int(* process)(struct s_sequence, int *, int)
Function to use for processing this sequence's value.
Definition sequence.h:56
char specifier
The specifier character for this sequence.
Definition sequence.h:50
t_ubiggest data
Retrieved variable argument.
Definition sequence.h:53
int total_len
Total number of characters after padding.
Definition sequence.h:54
char * sign
String containing the prefix for the value. Set during preprocessing for a format handler.
Definition sequence.h:52