HPL_fprintf(3)

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

πŸ’– HPL_fprintf β€” bestie edition πŸ’–

okay so you're in the HPL library functions section of the manual, and today's main character is HPL_fprintf(3). she's giving fprintf but make it flush. let's get into it 🫢


✨ NAME ✨

HPL_fprintf β€” it's literally an fprintf + fflush wrapper. two jobs, one icon. πŸ’…


🌸 SYNOPSIS 🌸

#include "hpl.h"

void HPL_fprintf( FILE * STREAM, const char * FORM, ...  );

πŸ¦‹ DESCRIPTION πŸ¦‹

so HPL_fprintf is a wrapper around fprintf, and the whole vibe is that it flushes the output stream for you. that's it, that's the girl. no cap. ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • STREAM (local input) β€” type FILE *. on entry, STREAM tells you which output stream we're working with. like, where the words are going. πŸ’Œ
  • FORM (local input) β€” type const char *. on entry, FORM is the format, aka how the subsequent arguments get converted for output. she's the blueprint, the rest of the args are just following her lead. πŸ‘‘
  • ... (local input) β€” on entry, ... is the list of arguments to be printed inside the format string. the little crew riding along with FORM. 🌈

πŸ”₯ EXAMPLE πŸ”₯

#include "hpl.h"

int main(int argc, char *argv[])
{
   HPL_fprintf( stdout, "Hello World.\n" );
   exit(0); return(0);
}

look at her go. iconic behaviour honestly. πŸ’œ


πŸ‘‘ SEE ALSO πŸ‘‘

  • HPL_abort (3)
  • HPL_warn (3)

go read those too, bestie, iykyk. 🧚


no thoughts, just a flushed stream. periodt. πŸ’–

and that's the whole page!! this was HPL 2.2, dated February 24, 2016 β€” shoutout to the HPL girlies for keeping the library functions manual cute since forever. bye bestie, go print something and make sure it actually shows up 🌸✨

πŸ“¦ where this page comes from