X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=man%2Fmenu_pattern.3x;h=a24ffa0818c588ed12958eb9eef7cc88fb6bea1a;hp=6b9fbccd1fa36381d5f8790595f14d43fcdcab0f;hb=5925150381bb42a4d8c7116d62c348a7b84309f3;hpb=17c5992a16be94247b83f2bbb9accdd9b7e7bb72 diff --git a/man/menu_pattern.3x b/man/menu_pattern.3x index 6b9fbccd..a24ffa08 100644 --- a/man/menu_pattern.3x +++ b/man/menu_pattern.3x @@ -1,5 +1,6 @@ .\"*************************************************************************** -.\" Copyright (c) 1998-2015,2018 Free Software Foundation, Inc. * +.\" Copyright 2018-2019,2020 Thomas E. Dickey * +.\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * .\" copy of this software and associated documentation files (the * @@ -26,17 +27,17 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: menu_pattern.3x,v 1.16 2018/07/28 22:08:59 tom Exp $ +.\" $Id: menu_pattern.3x,v 1.21 2020/10/18 00:41:14 tom Exp $ .TH menu_pattern 3X "" .SH NAME \fBset_menu_pattern\fP, \fBmenu_pattern\fR \- set and get a menu's pattern buffer .SH SYNOPSIS \fB#include \fR +.sp +\fBint set_menu_pattern(MENU *\fP\fImenu\fP\fB, const char *\fP\fIpattern\fP\fB);\fP .br -int set_menu_pattern(MENU *menu, const char *pattern); -.br -char *menu_pattern(const MENU *menu); +\fBchar *menu_pattern(const MENU *\fP\fImenu\fP\fB);\fP .br .SH DESCRIPTION Every menu has an associated pattern match buffer. @@ -56,7 +57,7 @@ The function \fBmenu_pattern\fR returns a pointer, which is \fBNULL\fR if the \fImenu\fP parameter is \fBNULL\fP. Otherwise, it is a pointer to a string which is empty if no pattern has been set. -It does not set errno. +It does not set \fBerrno\fP. .PP The function \fBset_menu_pattern\fR may return the following error codes: .TP 5 @@ -76,7 +77,7 @@ No items are connected to menu. Character failed to match. .TP 5 .B E_SYSTEM_ERROR -System error occurred (see \fBerrno\fR). +System error occurred (see \fBerrno\fR(3)). .SH SEE ALSO \fBcurses\fR(3X), \fBmenu\fR(3X). .SH NOTES