requestname(3FORM)
π requestname(3FORM) β the form-request name translator, bestie π
okay so this is a library call from the ncurses family, and honestly? it's giving "tiny little lookup helpers that you will absolutely forget exist until you need them." Two functions, both about matching form request codes to their printable names and back again. Short page, big slay. β¨
πΈ 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 here's the tea, no cap. π«
form_request_namereturns the printable name of a form request code. that's it. that's the whole job. iconic behavior honestly.form_request_by_namegoes digging in the name-table for a request with the given name, and returns its request code. and if it can't find one? it hands you backE_NO_MATCH. sad girl hours. π
π RETURN VALUE π
form_request_namereturnsNULLon error, and setserrnotoE_BAD_ARGUMENT. so like, if you getNULLback, checkerrno, she's talking. πform_request_by_namereturnsE_NO_MATCHon error. and listen β it does not seterrno. so don't go staring aterrnoexpecting answers, bestie, she's not the one. π
π PORTABILITY π
these routines are specific to ncurses, fr fr. they were not supported on Version 7, BSD or System V implementations.
so if you're writing code that depends on them, the recommendation is to condition it using NCURSES_VERSION. protect your peace, gate your code. π§
π AUTHORS π
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. legends, both of them. π«Ά
π SEE ALSO π
ncurses(3NCURSES)form(3FORM)
and that's the whole page, babes. this one's from ncurses 6.6, dated 2024-12-28, so go forth and match your request names with confidence. mwah. πβ¨πΈ
π¦ where this page comes from
- ubuntu resolute: ncurses-doc 6.6+20251231-1 Β· MIT/X11
- ubuntu stonking: ncurses-doc 6.6+20260608-2 Β· MIT/X11
- 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