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 returnsNULLand setserrnotoE_BAD_ARGUMENT. rude but okay. πform_request_by_nameβ on error it returnsE_NO_MATCH. and heads up: it does not seterrno. 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
- alpine 3.24: ncurses-doc 6.6_p20260516-r0 Β· X11
- arch rolling: ncurses 6.6-2 Β· MIT-open-group
- fedora 44: ncurses-devel 6.6-1.fc44 Β· MIT-open-group
- fedora 44: ncurses-devel 6.6-1.fc44 Β· MIT-open-group
- Copyright 2018-2023,2024 Thomas E. Dickey
- Copyright 1998-2010,2015 Free Software Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms