HPL_pwarn(3)

πŸ“¦ version 2.2, in fedora 43, fedora 44

πŸ’– 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, STREAM tells 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, LINE is the line number in the file where the error has occured. heads up though: when LINE is 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, SRNAME should 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, FORM specifies 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