diff options
Diffstat (limited to 'man/mitem_userptr.3x')
-rw-r--r-- | man/mitem_userptr.3x | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/man/mitem_userptr.3x b/man/mitem_userptr.3x index f2639fd..3c3feb2 100644 --- a/man/mitem_userptr.3x +++ b/man/mitem_userptr.3x @@ -28,17 +28,17 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: mitem_userptr.3x,v 1.14 2020/02/02 23:34:34 tom Exp $ +.\" $Id: mitem_userptr.3x,v 1.17 2020/10/18 00:36:16 tom Exp $ .TH mitem_userptr 3X "" .SH NAME \fBset_item_userptr\fP, \fBitem_userptr\fR \- associate application data with a menu item .SH SYNOPSIS \fB#include <menu.h>\fR +.sp +\fBint set_item_userptr(ITEM *\fP\fIitem\fP\fB, void *\fP\fIuserptr\fP\fB);\fP .br -int set_item_userptr(ITEM *item, void *userptr); -.br -void *item_userptr(const ITEM *item); +\fBvoid *item_userptr(const ITEM *\fP\fIitem\fP\fB);\fP .br .SH DESCRIPTION Every menu item has a field that can be used to hold application-specific data @@ -47,7 +47,7 @@ These functions get and set that field. .SH RETURN VALUE The function \fBitem_userptr\fR returns a pointer (possibly \fBNULL\fR). -It does not set errno. +It does not set \fBerrno\fP. .PP The \fBset_item_userptr\fP always returns \fBE_OK\fP (success). . |