tgrekov-fdf
HIVE fdf May 2024
Loading...
Searching...
No Matches
handlers.h
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* handlers.h :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2023/11/01 00:29:00 by tgrekov #+# #+# */
9/* Updated: 2024/02/11 23:47:24 by tgrekov ### ########.fr */
10/* */
11/* ************************************************************************** */
12
13#ifndef HANDLERS_H
14# define HANDLERS_H
15
16# include <stdarg.h>
17# include "../sequence.h"
18
19void pre_char(va_list args, t_sequence *seq);
20void pre_int(va_list args, t_sequence *seq);
21void pre_percent(va_list args, t_sequence *seq);
22void pre_ptr(va_list args, t_sequence *seq);
23void pre_string(va_list args, t_sequence *seq);
24void pre_uhex(va_list args, t_sequence *seq);
25void pre_uint(va_list args, t_sequence *seq);
26
27#endif
void pre_char(va_list args, t_sequence *seq)
Preprocess the character specifier by retrieving the character, setting s_sequence::total_len to 1 an...
Definition char.c:47
void pre_uint(va_list args, t_sequence *seq)
Preprocess the unsigned integer specifier by retrieving the argument in the appropriate size,...
Definition uint.c:54
void pre_uhex(va_list args, t_sequence *seq)
Preprocess the unsigned hexadecimal specifier by retrieving the argument in the appropriate size,...
Definition uhex.c:58
void pre_ptr(va_list args, t_sequence *seq)
Preprocess the pointer specifier by retrieving the address, setting the s_sequence::total_len with u_...
Definition pointer.c:38
void pre_string(va_list args, t_sequence *seq)
Preprocess the string specifier by retrieving the address, setting s_sequence::data to the address,...
Definition string.c:50
void pre_int(va_list args, t_sequence *seq)
Preprocess the signed integer specifier by retrieving the argument in the appropriate size,...
Definition int.c:88
void pre_percent(va_list args, t_sequence *seq)
Preprocess the percent specifier by setting s_sequence::data to %, s_sequence::total_len to 1,...
Definition percent.c:35
Holds information regarding the current format specifier sequence.
Definition sequence.h:49