form_requestname(3X)

πŸ’– form_requestname(3X) β€” bestie, it's the form request name handler πŸ’–

okay so this is form_requestname(3X) from the library calls section, and it's literally the lil translator between form request codes and their cute printable names. no cap. πŸŽ€


✨ NAME ✨

form_request_by_name, form_request_name β€” handle printable form request names πŸ¦‹


🌸 SYNOPSIS 🌸

#include <form.h>

const char *form_request_name(int request);
int form_request_by_name(const char *name);

πŸ’… DESCRIPTION πŸ’…

So form_request_name does the one thing and does it slay: you hand it a form request code, it hands you back the printable name of that code. icon. ✨

And form_request_by_name is the reverse bestie β€” it goes searching through the name-table looking for a request that has the name you gave it, and returns that request's code. 🫢

And if it can't find one? E_NO_MATCH comes back at you. periodt. πŸ’€


πŸ‘‘ RETURN VALUE πŸ‘‘

  • form_request_name β€” on error it returns NULL and sets errno to E_BAD_ARGUMENT. rude but okay. 😭
  • form_request_by_name β€” on error it returns E_NO_MATCH. and heads up: it does not set errno. not even a little. πŸ™ˆ

🌈 PORTABILITY 🌈

These routines are specific to ncurses, bestie. They were not supported on Version 7, BSD or System V implementations. 😳

It is recommended that any code depending on them be conditioned using NCURSES_VERSION. fr fr, do the vibe check before you ship. πŸ’…

🧚 AUTHORS 🧚

Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. πŸ‘‘


πŸ“ SEE ALSO πŸ“

  • curses(3X)
  • form(3X)

and that's the whole thing, bestie!! this was ncurses 6.6, dated 2024-12-28, and the page itself is form_requestname(3X) β€” mwah, go forth and translate your request codes, you main character. πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from