Libft
Custom implementation of core libc functions with additional utility helpers.
Loading...
Searching...
No Matches
s_rules Struct Reference

Structure holding format specifier rules for printf-like formatting. More...

#include <buff_format.h>

Data Fields

bool plus
 Display '+' sign for positive numbers.
 
bool space
 Display space before positive numbers.
 
bool hex_prefix
 Display '0x' or '0X' prefix for hex numbers.
 
bool zero_padding
 Pad with zeros instead of spaces.
 
bool right_padding
 Right-align the output.
 
int precision
 Precision value, -1 if not set.
 
bool width_enabled
 Width specifier is enabled.
 
int width
 Minimum field width.
 
char conversion
 Conversion specifier character.
 
bool is_zero
 Value is zero (used for special cases).
 

Detailed Description

Structure holding format specifier rules for printf-like formatting.

Field Documentation

◆ conversion

char s_rules::conversion

Conversion specifier character.

◆ hex_prefix

bool s_rules::hex_prefix

Display '0x' or '0X' prefix for hex numbers.

◆ is_zero

bool s_rules::is_zero

Value is zero (used for special cases).

◆ plus

bool s_rules::plus

Display '+' sign for positive numbers.

◆ precision

int s_rules::precision

Precision value, -1 if not set.

◆ right_padding

bool s_rules::right_padding

Right-align the output.

◆ space

bool s_rules::space

Display space before positive numbers.

◆ width

int s_rules::width

Minimum field width.

◆ width_enabled

bool s_rules::width_enabled

Width specifier is enabled.

◆ zero_padding

bool s_rules::zero_padding

Pad with zeros instead of spaces.


The documentation for this struct was generated from the following file: