tgrekov-pipex
HIVE pipex May 2024
Loading...
Searching...
No Matches
handlers.h
Go to the documentation of this file.
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/13 07:29:55 by tgrekov ### ########.fr */
10/* */
11/* ************************************************************************** */
12
20#ifndef HANDLERS_H
21# define HANDLERS_H
22
23# include <stdarg.h>
24# include "../sequence.h"
25# include "../subspec.h"
26
27void pre_char(va_list args, t_sequence *seq);
28void pre_int(va_list args, t_sequence *seq);
29void pre_percent(va_list args, t_sequence *seq);
30void pre_ptr(va_list args, t_sequence *seq);
31void pre_set_fd(va_list args, t_sequence *seq);
32void pre_store(va_list args, t_sequence *seq);
33void pre_string(va_list args, t_sequence *seq);
34void pre_uhex(va_list args, t_sequence *seq);
35void pre_uint(va_list args, t_sequence *seq);
36void pre_uoct(va_list args, t_sequence *seq);
37
38#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_uoct(va_list args, t_sequence *seq)
Preprocess the unsigned octal specifier by retrieving the argument in the appropriate size,...
Definition uoct.c:55
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
void pre_set_fd(va_list args, t_sequence *seq)
Preprocess the set file descriptor specifier by retrieving the argument, ensuring that s_subspec::min...
Definition set_fd.c:49
void pre_store(va_list args, t_sequence *seq)
Preprocess the store specifier by retrieving the address argument in the appropriate size dependent o...
Definition store.c:69
Holds information regarding the current format specifier sequence.
Definition sequence.h:49