![]() |
tgrekov-push_swap
HIVE push_swap July 2024
|
Definition in file uhex.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_uhex (t_sequence seq, int *fd, int total) |
Process the unsigned octal specifier by printing the number in uppercase or lowercase base 16 depending on whether s_sequence::specifier is x or X. | |
| void | pre_uhex (va_list args, t_sequence *seq) |
Preprocess the unsigned hexadecimal specifier by retrieving the argument in the appropriate size, setting the s_sequence::total_len with u_len_base(nbr, 16) and the s_subspec::precision, ensuring that s_subspec::pad_str is set to spaces if the s_subspec::precision is set, setting s_sequence::sign to 0x or 0X if s_subspec::force_decimal is set and the retrieved value is non-zero, and setting the s_sequence::process to process_uhex. | |
| void pre_uhex | ( | va_list | args, |
| t_sequence * | seq | ||
| ) |
Preprocess the unsigned hexadecimal specifier by retrieving the argument in the appropriate size, setting the s_sequence::total_len with u_len_base(nbr, 16) and the s_subspec::precision, ensuring that s_subspec::pad_str is set to spaces if the s_subspec::precision is set, setting s_sequence::sign to 0x or 0X if s_subspec::force_decimal is set and the retrieved value is non-zero, and setting the s_sequence::process to process_uhex.
| [in,out] | args | |
| [in,out] | seq |
| int process_uhex | ( | t_sequence | seq, |
| int * | fd, | ||
| int | total | ||
| ) |
Process the unsigned octal specifier by printing the number in uppercase or lowercase base 16 depending on whether s_sequence::specifier is x or X.
| [in] | seq | |
| [in] | fd | |
| [in] | total | (Unused) |
| int | Return value of u_print_base |
Definition at line 37 of file uhex.c.