Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

new(3menu) [suse man page]

new(3MENU)																new(3MENU)

NAME
new - create and destroy menus SYNOPSIS
#include <menu.h> MENU *new_menu(ITEM **items); int free_menu(MENU *menu); DESCRIPTION
The function new_menu creates a new menu connected to a specified item pointer array (which must be NULL-terminated). The function free_menu disconnects menu from its item array and frees the storage allocated for the menu. RETURN VALUE
The function new_menu returns NULL on error. It sets errno according to the function's failure: E_NOT_CONNECTED No items are connected to the menu. E_SYSTEM_ERROR System error occurred, e.g., malloc failure. The function free_menu returns one of the following: E_OK The routine succeeded. E_SYSTEM_ERROR System error occurred (see errno). E_BAD_ARGUMENT Routine detected an incorrect or out-of-range argument. E_POSTED The menu has already been posted. SEE ALSO
ncurses(3NCURSES), menu(3MENU). NOTES
The header file <menu.h> automatically includes the header file <curses.h>. PORTABILITY
These routines emulate the System V menu library. They were not supported on Version 7 or BSD versions. AUTHORS
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. new(3MENU)

Check Out this Related Man Page

new(3MENU)																new(3MENU)

NAME
new - create and destroy menus SYNOPSIS
#include <menu.h> MENU *new_menu(ITEM **items); int free_menu(MENU *menu); DESCRIPTION
The function new_menu creates a new menu connected to a specified item pointer array (which must be NULL-terminated). The function free_menu disconnects menu from its item array and frees the storage allocated for the menu. RETURN VALUE
The function new_menu returns NULL on error. It sets errno according to the function's failure: E_NOT_CONNECTED No items are connected to the menu. E_SYSTEM_ERROR System error occurred, e.g., malloc failure. The function free_menu returns one of the following: E_OK The routine succeeded. E_SYSTEM_ERROR System error occurred (see errno). E_BAD_ARGUMENT Routine detected an incorrect or out-of-range argument. E_POSTED The menu has already been posted. SEE ALSO
ncurses(3NCURSES), menu(3MENU). NOTES
The header file <menu.h> automatically includes the header file <curses.h>. PORTABILITY
These routines emulate the System V menu library. They were not supported on Version 7 or BSD versions. AUTHORS
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. new(3MENU)
Man Page

11 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need Help for Adding Three new columns in existing file from fatching data from file

not required this time (36 Replies)
Discussion started by: Sandeep_Malik
36 Replies

2. Solaris

new sparc netra 500mhz problem

hey guys i'm in university and i bought my self a sun ultra SPARC netra 500mhz machine with the usb ports a vga gfc and cdrom drive now i have a problem (bought it off ebay) i trying to install a fresh solaris 10 server op onto it but it looks like it previously had linix installed and... (38 Replies)
Discussion started by: garethmob
38 Replies

3. Shell Programming and Scripting

AWK Script Issue insert newline for a regular expression match

Hi , I am having an issue with the Awk script to insert newline for a regular expression match Having a file like this FILE1 #################### RXOER , RXERA , RXERC , RXERD .RXEA(RXBSN), RXERD , REXCD input RXEGT buffer RXETRY ####################### Want to match the RXE... (38 Replies)
Discussion started by: jaita
38 Replies

4. UNIX for Dummies Questions & Answers

Move File Containing More Than two "-" at 3rd Line To New Directory

Hi Guys I am trying to move file containing more than two - at the 3rd line of each files to a new directory. The files are something like this : ****** Text ****** /text/ text text I want to make sure the search effect only take place on the 3rd line one as there might me... (46 Replies)
Discussion started by: Nexeu
46 Replies

5. Shell Programming and Scripting

Tetris Game -- based on a shell script (new algorithm)

GitHub - deepgrace/tetris: Tetris implementation in all kinds of Programming Languages Usage: bash Tetris_Game ] ] ] ] Range: #!/bin/bash # Tetris Game // The Art Of Shell Programming box0=(4 30) box1=(4 30 4 32) box2=(4 30 5 32) box3=(4 28 4 30 4 32) box4=(4 28 4 30... (69 Replies)
Discussion started by: complex.invoke
69 Replies

6. What is on Your Mind?

Prototyping New Responsive Mobile UNIX.COM

I'm working on updates to the mobile phone view, and it's going to look much better I think. Here are some current prototypes: Prototype Mobile Home Page: https://www.unix.com/members/1-albums214-picture690.jpg Prototype Mobile Search Page: ... (43 Replies)
Discussion started by: Neo
43 Replies

7. What is on Your Mind?

Prototyping New Responsive Mobile for UNIX.COM - Phase II

Have completed "Phase I" of our project "Prototyping New Responsive Mobile UNIX.COM", I am now moving to "Phase II" which will be changing many of the menus and buttons to use Javascript and CSS for the mobile site menus. For example, here is the new "main side menu" for the mobile site (below).... (63 Replies)
Discussion started by: Neo
63 Replies

8. What is on Your Mind?

New Icons Coming from Font Awesome

Finally making some progress on getting rid of the 10 year old buttons with modern day fonts and icons thanks to a responsive web design tutorial by Brad Traversy who's video pointed me to Font Awesome. The buttons and icons were pretty easy to implement but it too me a number of hours... (39 Replies)
Discussion started by: Neo
39 Replies

9. UNIX for Beginners Questions & Answers

SCO OpenServer 5 Will Not Boot

We have a legacy system that runs on SCO OpenServer 5.0.6, and I've rebuilt the server a couple of times so we can have access to old historical data. That system suddenly went offline for no known reason, and I know that the configuration has not been altered, there is nobody with access to the... (63 Replies)
Discussion started by: spock9458
63 Replies

10. What is on Your Mind?

New Badging System - Badges Prototype Beta 1 (Badges Only)

Today I mapped out the new badging system using FA icons, Beta 1 in no particular order except a 6 x 8 grid: https://www.unix.com/members/1-albums215-picture991.png The prototype HTML code for this layout: <style> .fa-badge-grid { font-size: 1.5em; } .row { ... (38 Replies)
Discussion started by: Neo
38 Replies

11. Web Development

Notes with Ravinder on Badging System Development Part II

Part II: Current PHP file Beta 73 Not Optimized: <?php $version = 73; $query = "SELECT * FROM " . TABLE_PREFIX . "user WHERE userid='" . $uid . "'"; $usertable = $db->query_read_slave($query); $modaluser = $db->fetch_array($usertable); $modaluser = gmdate("d F Y", $modaluser); $modaluser... (48 Replies)
Discussion started by: Neo
48 Replies