![]() |
tgrekov-push_swap
HIVE push_swap July 2024
|
Definition in file uoct.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 | |
| static int | process_uoct (t_sequence seq, int *fd, int total) |
| Process the unsigned octal specifier by printing the number in base 8. | |
| void | pre_uoct (va_list args, t_sequence *seq) |
Preprocess the unsigned octal specifier by retrieving the argument in the appropriate size, setting the s_sequence::total_len with u_len_base(nbr, 8) 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 0 if s_subspec::force_decimal is set and the retrieved value is non-zero, and setting the s_sequence::process to process_uoct. | |
| void pre_uoct | ( | va_list | args, |
| t_sequence * | seq | ||
| ) |
Preprocess the unsigned octal specifier by retrieving the argument in the appropriate size, setting the s_sequence::total_len with u_len_base(nbr, 8) 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 0 if s_subspec::force_decimal is set and the retrieved value is non-zero, and setting the s_sequence::process to process_uoct.
| [in,out] | args | |
| [in,out] | seq |
Definition at line 55 of file uoct.c.
References s_sequence::data, s_subspec::force_decimal, s_subspec::lenmod, s_subspec::pad_str, s_subspec::precision, s_sequence::process, process_uoct(), s_sequence::sign, s_sequence::subspec, s_sequence::total_len, u_len_base(), and unsigned_arg().
|
static |
Process the unsigned octal specifier by printing the number in base 8.
| [in] | seq | |
| [in] | fd | |
| [in] | total | (Unused) |
| int | Return value of u_print_base |
Definition at line 36 of file uoct.c.
References u_print_base().