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

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* char.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/01 00:22:38 by tgrekov #+# #+# */
/* Updated: 2024/02/13 07:56:59 by tgrekov ### ########.fr */
/* */
/* ************************************************************************** */

Definition in file char.c.

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

Go to the source code of this file.

Functions

int process_char (t_sequence seq, int *fd, int total)
 Processes the character specifier by writing a character. (Wow)
 
void pre_char (va_list args, t_sequence *seq)
 Preprocess the character specifier by retrieving the character, setting s_sequence::total_len to 1 and s_sequence::process to process_char.
 

Function Documentation

◆ pre_char()

void pre_char ( va_list  args,
t_sequence seq 
)

Preprocess the character specifier by retrieving the character, setting s_sequence::total_len to 1 and s_sequence::process to process_char.

Parameters
[in,out]args
[in,out]seq

Definition at line 47 of file char.c.

References s_sequence::data, s_sequence::process, process_char(), and s_sequence::total_len.

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

◆ process_char()

int process_char ( t_sequence  seq,
int *  fd,
int  total 
)

Processes the character specifier by writing a character. (Wow)

Parameters
[in]seq
[in]fd
[in]total(Unused)
Return values
intOutput of write

Definition at line 33 of file char.c.

References s_sequence::data.

Here is the caller graph for this function: