tgrekov-fdf
HIVE fdf May 2024
Loading...
Searching...
No Matches
percent.c File Reference

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

Definition in file percent.c.

#include <stdarg.h>
#include <unistd.h>
#include "../sequence.h"
#include "../../utils/internal_types.h"
Include dependency graph for percent.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_percent (va_list args, t_sequence *seq)
 Preprocess the percent specifier by setting s_sequence::data to %, s_sequence::total_len to 1, and s_sequence::process to process_char.
 

Function Documentation

◆ pre_percent()

void pre_percent ( va_list  args,
t_sequence seq 
)

Preprocess the percent specifier by setting s_sequence::data to %, s_sequence::total_len to 1, and s_sequence::process to process_char.

Parameters
[in]args(Unused)
[in,out]seq

Definition at line 35 of file percent.c.

◆ 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.

Here is the caller graph for this function: