HPL_pwarn(3)
π HPL_pwarn(3) π
okay bestie, welcome to the HPL Library Functions corner of the man pages πΈ this one's a little one but she's important, so grab your iced coffee and let's go β¨
β¨ NAME β¨
HPL_pwarn β displays an error message. that's it, that's the job π
π SYNOPSIS π
#include "hpl.h"
void HPL_pwarn( FILE * STREAM, int LINE, const char * SRNAME, const char
* FORM, ... );
π¦ DESCRIPTION π¦
so like, HPL_pwarn displays an error message. iconic behaviour honestly. she's the one you call when something went sideways and you need to tell the user about it in a nice formatted way π«Ά
π ARGUMENTS π
STREAM(local input) βFILE *β on entry,STREAMtells you which output stream everything's getting written to. it's giving "where do you want this tea spilled" βLINE(local input) βintβ on entry,LINEis the line number in the file where the error has occured. heads up though: whenLINEis not a positive line number, it's just ignored. no drama, no error, she simply does not care πSRNAME(local input) βconst char *β on entry,SRNAMEshould be the name of the routine calling this error handler. like, name-drop your caller, bestie, it's only polite πFORM(local input) βconst char *β on entry,FORMspecifies the format, i.e., how the subsequent arguments are converted for output. you know, the whole printf-style situation π- (local input) β
...β on entry,...is the list of arguments to be printed within the format string. put whatever you need in there, she'll handle it β¨
π SEE ALSO π
HPL_pabort (3), HPL_fprintf (3).
and that's the whole vibe check, bestie π
this page is brought to you by HPL 2.2, dated February 24, 2016 β yeah she's an older queen but she still serves π π bye pookie, go log some errors responsibly π¦
π¦ where this page comes from
- fedora 43: hpl-doc 2.2-22.fc43 Β· LicenseRef-Callaway-BSD-with-advertising
- fedora 44: hpl-doc 2.2-23.fc44 Β· LicenseRef-Callaway-BSD-with-advertising
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms