Libft
Custom implementation of core libc functions with additional utility helpers.
Loading...
Searching...
No Matches
error.c File Reference
#include "libft.h"
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
Include dependency graph for error.c:

Functions

static void _print (bool print_errno, int errno_val, const char *s, size_t len)
 
void fprint_err (bool print_errno, const char *safe, const char *fmt,...)
 Prints "Error\n" to stderr with safe prefix + formatted suffix.
 
void print_err (bool print_errno, const char *message)
 Prints "Error\n" to stderr with optional message and errno.
 

Function Documentation

◆ _print()

static void _print ( bool  print_errno,
int  errno_val,
const char *  s,
size_t  len 
)
static
Here is the call graph for this function:
Here is the caller graph for this function: