tgrekov-ft_printf
HIVE printf Feb 2024
Loading...
Searching...
No Matches
u_print_base.c File Reference

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* u_print_base.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/02 02:31:45 by tgrekov #+# #+# */
/* Updated: 2024/02/13 08:36:52 by tgrekov ### ########.fr */
/* */
/* ************************************************************************** */

Definition in file u_print_base.c.

#include <unistd.h>
#include "../../sequence.h"
#include "../../../utils/utils.h"
#include "../../../utils/internal_types.h"
#include "../../../../../libft/libft.h"
Include dependency graph for u_print_base.c:

Go to the source code of this file.

Functions

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: