GETARGINIT(3)
π GETARGINIT(3) β getarginit()
okay so real talk, this one lives in SchilyΒ΄s LIBRARY FUNCTIONS (that's the manual name bestie, we're in the getargs cinematic universe) and it's literally the setup queen for all her sister functions. she doesn't parse anything herself, she just hands out the vibes β¨
πΈ NAME πΈ
getarginit() β initialize properties for getargs() type functions
like, she's the one who picks the outfit (the properties) before the rest of the squad goes out π
π¦ SYNOPSIS π¦
#include <schily/getargs.h>
int getarginit(propg, flags)
struct ga_props *props; /* control properties */
int flags; /* to control option parsing behavior */
π DESCRIPTION π
getarginit() initializes struct ga_props as needed by the functions getlargs(), getlallargs(), getlfiles(), getvargs(), getvallargs(), getvfiles(). no cap, she's the pre-game ritual for the whole fam π«Ά
The flags argument controls the behavior of the named functions. If the value is 0, the default behavior as documented in the man pages is used. icymi, here are the flags you can pass β and yes, they may be combined (except for the one diva that refuses to share the spotlight, scroll down π
):
GAF_DEFAULTβ Use the default behavior. the "no thoughts head empty" option, respect π§GAF_NO_PLUSβ Options may not start with a+even if they are marked with a+in the format string. sorry plus-sign girlies, not today πGAF_NO_EQUALβ Disallow=between option name and value. the equals sign has left the chat πGAF_NEED_DASHβ A dash is needed before an option that takes an argument. Options in the formname=valueare not allowed. dash girlies rise,name=valuestans sit down πGAF_DELIM_DASHDASHβ The special argument--stops option parsing even when usinggetallargs(),getlallargs(),getvallargs().--said "I'm done" and she meant it π₯GAF_SINGLEARGβ In a string with combined single character options, the last option character may be an option that has an argument. so like, the last one in the bundle is allowed to be the needy one π₯ΊGAF_POSIXβ This macro enforces POSIX behavior and expands toGAF_NO_PLUS | GAF_NO_EQUAL | GAF_SINGLEARG. This value may not be combined with other flags. β οΈ she's an all-or-nothing icon, do not try to mix her with the others, that's not the vibe π
fr fr, GAF_POSIX will not be combined with other flags. that's not me being dramatic, that's the rule bestie π
β RETURNS β
0β No error occurred. slay, we're so back π-1β The version of the library was too old for the calling program. rip, time to update π
π SEE ALSO π
getlargs(3), getlallargs(3), getlfiles(3), getvargs(3), getvallargs(3), getvfiles(3). the whole friend group, go read them too iykyk π
π BUGS π
None currently known. flawless behavior, we love to see it β¨
Mail bugs and suggestions to schilytools@mlists.in-berlin.de or open a ticket at https://codeberg.org/schilytools/schilytools/issues. she reads her dms π¬
The mailing list archive may be found at:
https://mlists.in-berlin.de/mailman/listinfo/schilytools-mlists.in-berlin.de
π AUTHOR π
Joerg Schilling and the schilytools project authors. main character energy, honestly π«Ά
that's the whole page babes, no notes πΈ written by Joerg Schilling and dated 2022/09/09, and that footer you saw at the bottom? that's just the source/version + date doing its little sign-off π mwah π
π¦ where this page comes from
- opensuse-leap 16.0: libschily-devel-doc 2022.10.16-160000.2.2 Β· CDDL-1.0
- Copyright 2019-2020 J. Schilling
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms