x-engine-c v0.2.13
The C engine for x-lang
Loading...
Searching...
No Matches
x.c File Reference

Core implementation – error reporting and debug output. More...

#include "x-lib.h"

Functions

void x_error (int fd, x_char_t *message, x_char_t *p_text)
 

Detailed Description

Core implementation – error reporting and debug output.

Author
Jon Ruttan (jonru.nosp@m.ttan.nosp@m.@gmai.nosp@m.l.co.nosp@m.m)

Function Documentation

◆ x_error()

void x_error ( int  fd,
x_char_t message,
x_char_t p_text 
)

Output an error message to a file descriptor.

Writes "*** ERROR: " followed by message. If p_text is non-NULL, appends ‘" ’"` and the context text.

Parameters
fdFile descriptor to write the error to.
messageA C string error message to output.
p_textA C string with additional context, or NULL.