form_new(3X)
π form_new(3X) β Library calls, bestie π
okay so this is form_new(3X) from the Library calls corner of the ncurses universe, and we're about to learn how to birth a form and then gently let it go. two functions, one page, zero gatekeeping. let's GO β¨
π NAME π
new_form, free_form β literally create and destroy forms. that's it. that's the whole vibe. creation and destruction, main character energy both ways π¦
πΈ SYNOPSIS πΈ
#include <form.h>
FORM *new_form(FIELD **fields);
int free_form(FORM *form);
like, look at that. so clean. so iconic. π
β¨ DESCRIPTION β¨
so new_form creates a new form connected to a specified field pointer array β and heads up bestie, that array must be NULL-terminated or she will simply not cope π
and then free_form does the opposite: it disconnects form from its field array and frees the storage allocated for the form. closure. we love to see it π«Ά
π₯ RETURN VALUE π₯
new_form π
returns NULL on error, and sets errno according to the function's success:
E_OKβ the routine succeeded. slay πE_BAD_ARGUMENTβ routine detected an incorrect or out-of-range argument. rude, but okay.E_CONNECTEDβ the field is already connected to a form. it's taken, babes πE_SYSTEM_ERRORβ system error occurred, e.g.,mallocfailure. the malloc said no π
free_form π
returns one of the following:
E_OKβ the routine succeeded. periodt.E_BAD_ARGUMENTβ routine detected an incorrect or out-of-range argument.E_POSTEDβ the form has already been posted. can't free what's already out there living its life π
π PORTABILITY π
these routines emulate the System V forms library. they were not supported on Version 7 or BSD versions β so like, if you're on those, no form for you ngl π§
π AUTHORS π
Juergen Pfeifer. manual pages and adaptation for new curses by Eric S. Raymond. absolute legends, both of them π«‘
β SEE ALSO β
curses(3X), form(3X) β go read those next, bestie, iykyk π
and that's the whole page, mwah π this was ncurses 6.5, dated 2024-12-28 β catch you on the next manpage, bestie, bye!! β¨πππ¦πΈπ π«Άπ₯ππβππππ§πβ¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright 2018-2023,2024 Thomas E. Dickey
- Copyright 1998-2010,2015 Free Software Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms