tgrekov-fdf
HIVE fdf May 2024
|
Definition in file uint.c.
#include <stdarg.h>
#include <unistd.h>
#include "../sequence.h"
#include "../../utils/utils.h"
#include "../../utils/internal_types.h"
#include "utils/handler_utils.h"
Go to the source code of this file.
Functions | |
int | process_uint (t_sequence seq, int *fd, int total) |
Processes the unsigned integer specifier by printing the number in base 10. | |
void | pre_uint (va_list args, t_sequence *seq) |
Preprocess the unsigned integer specifier by retrieving the argument in the appropriate size, setting the s_sequence::total_len with u_len_base(nbr, 10) and the s_subspec::precision, ensuring that s_subspec::pad_str is set to spaces if the s_subspec::precision is set, and setting the s_sequence::process to process_uint. | |
void pre_uint | ( | va_list | args, |
t_sequence * | seq | ||
) |
Preprocess the unsigned integer specifier by retrieving the argument in the appropriate size, setting the s_sequence::total_len with u_len_base(nbr, 10) and the s_subspec::precision, ensuring that s_subspec::pad_str is set to spaces if the s_subspec::precision is set, and setting the s_sequence::process to process_uint.
[in,out] | args | |
[in,out] | seq |
int process_uint | ( | t_sequence | seq, |
int * | fd, | ||
int | total | ||
) |
Processes the unsigned integer specifier by printing the number in base 10.
[in] | seq | |
[in] | fd | |
[in] | total | (Unused) |
int | Return value of u_print_base |
Definition at line 36 of file uint.c.