libft
Loading...
Searching...
No Matches
Functions
format_and_print_p.c File Reference

Handles p format specifier for ft_printf. More...

#include "libft.h"
+ Include dependency graph for format_and_print_p.c:

Functions

static char * convert_ptr_to_hex (void *ptr, t_pf *pf)
 Converts a pointer to a lowercase hexadecimal string.
 
void format_and_print_p (t_fmt *fmt, va_list *args, t_pf *pf)
 Handles p format specifier for ft_printf.
 
static char * handle_null_ptr (t_pf *pf)
 Returns the default string for a NULL pointer.
 
static void print_with_padding (t_fmt *fmt, char *str, t_pf *pf)
 Prints the pointer string with formatting and padding.
 

Detailed Description

Handles p format specifier for ft_printf.

This file provides the implementation for printing pointer values using the p format in ft_printf. It handles:

Author
Toonsa
Date
2024/10/30