Sponsored Content
Full Discussion: linux help
Top Forums UNIX for Dummies Questions & Answers linux help Post 302714437 by Don Cragun on Friday 12th of October 2012 07:30:30 AM
Old 10-12-2012
This sounds like a homework item posted to the wrong forum...
 

2 More Discussions You Might Find Interesting

1. Fedora

Which is the better platform to learn UNIX/Linux (Kali Linux Vs. Red Hat or other)?

I just started a new semester and I started my UNIX class yesterday. I've already decided to use python along with my learning process but what I really want to use with it is Kali as my UNIX/Linux platform to learn off of since I already wanted to learn Cyber Sec. anyways. I just wanted to know if... (12 Replies)
Discussion started by: ApacheOmega
12 Replies

2. UNIX for Beginners Questions & Answers

Simple sed command not working; could be a Mac/Linux vs. PC/Linux issue

Hello, I am on a Mac and trying to clean up some monthly files with a very simple SED: sed '3,10d;/<ACROSS>/,$d' input.txt > output.txt (from the input, delete lines 3 - 10; then delete from the line containing <ACROSS> to the end of the file) then output to output.txt Even when I try... (2 Replies)
Discussion started by: verbatim
2 Replies
menu_hook(3CURSES)					     Curses Library Functions						menu_hook(3CURSES)

NAME
menu_hook, set_item_init, item_init, set_item_term, item_term, set_menu_init, menu_init, set_menu_term, menu_term - assign application-spe- cific routines for automatic invocation by menus SYNOPSIS
cc [ flag... ] file... -lmenu -lcurses [ library... ] #include <menu.h> int set_item_init(MENU *menu, void (*func)(MENU *)); int set_item_term(MENU *menu, void (*func)(MENU *)); void item_term(MENU *menu); int set_menu_init(MENU *menu, void (*func)(MENU *)); void menu_init(MENU *menu); int set_menu_term(MENU *menu, void (*func)(MENU *)); void menu_term(MENU *menu); DESCRIPTION
set_item_init() assigns the application-defined function to be called when the menu is posted and just after the current item changes. item_init() returns a pointer to the item initialization routine, if any, called when the menu is posted and just after the current item changes. set_item_term() assigns an application-defined function to be called when the menu is unposted and just before the current item changes. item_term() returns a pointer to the termination function, if any, called when the menu is unposted and just before the current item changes. set_menu_init() assigns an application-defined function to be called when the menu is posted and just after the top row changes on a posted menu. menu_init() returns a pointer to the menu initialization routine, if any, called when the menu is posted and just after the top row changes on a posted menu. set_menu_term() assigns an application-defined function to be called when the menu is unposted and just before the top row changes on a posted menu. menu_term() returns a pointer to the menu termination routine, if any, called when the menu is unposted and just before the top row changes on a posted menu. RETURN VALUES
Routines that return pointers always return NULL on error. Routines that return an integer return one of the following: E_OK The routine returned successfully. E_SYSTEM_ERROR System error. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
curses(3CURSES), menus(3CURSES), attributes(5) NOTES
The header <menu.h> automatically includes the headers <eti.h> and <curses.h>. SunOS 5.11 31 Dec 1996 menu_hook(3CURSES)
All times are GMT -4. The time now is 08:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy