MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Curses Library Functions                    menupattern(3CURSES)



NAME
     menupattern, setmenupattern - set and get  menus  pattern
     match buffer

SYNOPSIS
     cc [ flag... ] file... -lmenu  -lcurses  [ library... ]
     #include 



     char *menupattern(MENU *menu);


     int setmenupattern(MENU *menu, char *pat);


DESCRIPTION
     Every menu has a pattern buffer to match entered  data  with
     menu  items.  setmenupattern()  sets the pattern buffer to
     pat and tries to find the first item that matches  the  pat-
     tern.  If  it  does,  the  matching item becomes the current
     item.  If  not,  the   current   item   does   not   change.
     menupattern()  returns  the string in the pattern buffer of
     menu.

RETURN VALUES
     menupattern() returns  NUL  on  error.  setmenupattern()
     returns one of the following:

     EOK              The routine returned successfully.


     ESYSTEMEROR    System error.


     EBADARGUMENT    An incorrect argument was  passed  to  the
                       routine.


     ENOMATCH        The character failed to match.


ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:










SunOS 5.11          Last change: 31 Dec 1996                    1






Curses Library Functions                    menupattern(3CURSES)



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     MT-Level                     Unsafe                      
    


SEE ALSO
     curses(3CURSES), menus(3CURSES), attributes(5)

NOTES
     The  header    automatically  includes  the  headers
      and .










































SunOS 5.11          Last change: 31 Dec 1996                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™