form_userptr(3X)
π¦ form_userptr(3X) β the bestie data-pocket era π¦
okay so first things first: this is a library call situation, and the manual name is literally form_userptr(3X). no cap, itβs giving βlet me stash my app data on a formβ energy. π
πΈ NAME πΈ
set_form_userptr, form_userptr β associate application data with a form item. periodt.
β¨ SYNOPSIS β¨
#include <form.h>
int set_form_userptr(FORM *form, void *userptr);
void* form_userptr(const FORM *form);
π DESCRIPTION π
okay so every form and every form item has a field that can be used to hold application-specific data (that is, the form-driver code leaves it alone). These functions get and set the form user pointer field. itβs literally a little pocket for your app data, and the form driver is not gonna mess with it. π«Ά
π RETURN VALUE π
form_userptrreturns a pointer (which may beNULL). It does not seterrno.set_form_userptrreturnsE_OK(success). slay.
π§ PORTABILITY π§
- These routines emulate the System V forms library. They were not supported on Version 7 or BSD versions.
- The user pointer is a
voidpointer. We chose not to leave it as acharpointer for SVr4 compatibility. iykyk.
π AUTHORS π
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. icons, honestly. β¨
π SEE ALSO π
curses(3X)form(3X)
π cute sign-off: this page is fromncurses 6.5, dated2024-12-28, and itβs literally theform_userptr(3X)manual. stay hydrated, bestie. π
π¦ 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