XVaCreateNestedList(3)

okay bestie, welcome to XVaCreateNestedList(3), straight out of XLIB FUNCTIONS πŸ’…βœ¨

✨ NAME ✨

XVaCreateNestedList β€” allocate a nested variable argument list πŸŽ€

✨ SYNTAX ✨

typedef void * XVaNestedList;

XVaNestedList XVaCreateNestedList(int dummy, ...);

✨ ARGUMENTS ✨

  • dummy β€” specifies an unused argument (required by ANSI C). it's literally just there because ANSI C said so, no cap πŸ™ˆ
  • ... β€” specifies the variable length argument list. the actual little stack of args 🫢

✨ DESCRIPTION ✨

okay so the XVaCreateNestedList function allocates memory and copies its arguments into a single list pointer, which may be used as a value for arguments requiring a list value. Any entries are copied as specified. ✨

bestie warning 🚨 data passed by reference is not copied; the caller must ensure data remains valid for the lifetime of the nested list. like, keep that data alive, fr fr 😭

The list should be freed using XFree when it is no longer needed. cleanup arc, periodt πŸ§šπŸ’–

✨ SEE ALSO ✨

  • Xlib - C Language X Interface πŸ‘‘πŸ“š

mwah πŸ’‹ this iconic little page is from X Version 11, libX11 1.8.14 β€” and the page doesn't print a separate date, so no invented date from me, bestie πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from