Files
yait/core/print.h
2025-07-28 11:32:01 -04:00

27 lines
624 B
C

/* Copyright (C) vx_clutch
*
* This file is part of yait
*
* This project and file is licenced under the BSD-3-Clause licence.
* <https://opensource.org/license/bsd-3-clause>
*/
#ifndef PRINT_H
#define PRINT_H
#include <stdarg.h>
#include <stdio.h>
/**
* Print a formatted message to stderr with program prefix and newline
* @param format Format string (printf-style)
* @param ... Variable arguments for formatting
* @return Number of characters printed
*/
int print_error_with_prefix (char *format, ...);
/* Legacy function name for backward compatibility */
#define printfn print_error_with_prefix
#endif