tgrekov-ft_printf
HIVE printf Feb 2024
Loading...
Searching...
No Matches
handler_utils.h File Reference

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* handler_utils.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/02 02:37:35 by tgrekov #+# #+# */
/* Updated: 2024/02/13 08:51:53 by tgrekov ### ########.fr */
/* */
/* ************************************************************************** */

Definition in file handler_utils.h.

#include <stdarg.h>
#include "../../../utils/internal_types.h"
#include "../../sequence.h"
Include dependency graph for handler_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

t_ubiggest unsigned_arg (va_list args, t_lenmod lenmod)
 Retrieves the next unsigned variable argument in the appropriate size dependent on the length modifier.
 
int u_print_base (t_sequence seq, int fd, char *base)
 Writes an unsigned integer in base base on descriptor fd, with respect to the s_subspec::precision.
 

Function Documentation

◆ u_print_base()

int u_print_base ( t_sequence  seq,
int  fd,
char *  base 
)

Writes an unsigned integer in base base on descriptor fd, with respect to the s_subspec::precision.

Parameters
[in]seq
[in]fd
[in]base
Return values
intNumber of characters written, or -1 on error.

Definition at line 35 of file u_print_base.c.

References s_sequence::data, ft_strlen(), s_subspec::precision, repeat_str_n(), s_sequence::subspec, u_len_base(), u_put_base(), and wrap_err().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ unsigned_arg()

t_ubiggest unsigned_arg ( va_list  args,
t_lenmod  lenmod 
)

Retrieves the next unsigned variable argument in the appropriate size dependent on the length modifier.

For more info on the length modifiers, see ft_printf.c

Parameters
[in,out]args
[in]lenmod
Return values
t_ubiggestRetrieved value

Definition at line 35 of file unsigned_arg.c.

Here is the caller graph for this function: