optionPrint...ionAndReturn(3)

🌸 NAME 🌸

optionPrintVersionAndReturn β€” Print the program version.

This little icon lives in the Programmer's Manual, bestie. πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

okay so you pull it in and link it like this:

#include <your-opts.h>
cc [...] -o outfile infile.c -lopts [...]

void optionPrintVersionAndReturn(tOptions * opts, tOptDesc * od);

πŸ¦‹ DESCRIPTION πŸ¦‹

This routine is giving β€œprint the version, then return” main character energy. It prints the version to stdout and returns instead of exiting β€” so no dramatic process-vanishing moment, you get control back. πŸ’…βœ¨

Please see the source for the print_ver function for the deets on selecting how verbose to be after this function returns. πŸ‘€

  • opts β€” program options descriptor 🫢
  • od β€” the descriptor for this arg 🌸

πŸ’… SEE ALSO πŸ’…

The info documentation for the -lopts library. πŸ“š


okay that’s the whole vibe: date 2018-08-26 Β· page optionPrint...ionAndReturn(3). mwah πŸ’‹βœ¨