tgrekov-ft_printf
HIVE printf Feb 2024
Loading...
Searching...
No Matches
sequence.h
Go to the documentation of this file.
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/13 06:56:24 by tgrekov ### ########.fr */
10/* */
11/* ************************************************************************** */
12
20#ifndef SEQUENCE_H
21# define SEQUENCE_H
22
23# include <unistd.h>
24# include "subspec.h"
25# include "../utils/internal_types.h"
26
48typedef struct s_sequence
49{
52 char *sign;
56 int (*process)(struct s_sequence, int *, int);
58
59#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
t_subspec subspec
Holds subspecifier options for a format specifier.
Definition sequence.h:51
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
int pad_len
Number of characters to pad.
Definition sequence.h:55
Holds subspecifier options for a format specifier.
Definition subspec.h:65