form_new(3CURSES) Curses Library Functions form_new(3CURSES)NAME
form_new, new_form, free_form - create and destroy forms
SYNOPSIS
cc [ flag... ] file... -lform -lcurses [ library... ]
#include <form.h>
FORM *new_form(FIELD **fields);
int free_form(FORM *form);
DESCRIPTION
new_form() creates a new form connected to the designated fields and returns a pointer to the form.
free_form() disconnects the form from its associated field pointer array and deallocates the space for the form.
RETURN VALUES
new_form() always returns NULL on error. free_form() returns one of the following:
E_OK The function returned successfully.
E_BAD_ARGUMENT An argument is incorrect.
E_POSTED The form is posted.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO curses(3CURSES), forms(3CURSES), attributes(5)NOTES
The header <form.h> automatically includes the headers <eti.h> and <curses.h>.
SunOS 5.10 31 Dec 1996 form_new(3CURSES)
Check Out this Related Man Page
form_new(3X)form_new(3X)NAME
form_new - create and destroy forms
SYNOPSIS
#include <form.h>
FORM *new_form(FIELD **fields);
int free_form(FORM *form);
DESCRIPTION
The function new_form creates a new form connected to a specified field pointer array (which must be NULL-terminated).
The function free_form disconnects form from its field array and frees the storage allocated for the form.
RETURN VALUE
The function new_form returns NULL on error.
The function free_form 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 form has already been posted.
SEE ALSO curses(3X), form(3X).
NOTES
The header file <form.h> automatically includes the header file <curses.h>.
PORTABILITY
These routines emulate the System V forms 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.
form_new(3X)
I need to capture a file's creation/modification date and time and convert this to a different format, whilst I can easily get the existing format from a ls -l | awk ' { print $......}' or a cut command I do not know how to convert it to a desired format?
I should add that at present the ls -l... (1 Reply)
I have about 300 files which has the function getDBBackend().
How to write a program to change the empty function from the old format to the new format?
Old empty function format are either:
function getDBBackend()
{
// Not available
} // getDBBackend
or:
function... (0 Replies)
Hi all
If my text file as follow:
group size time file
other 58585739 2008 test1.csv
other 122 2008 testcsv.sh
other 164 19:28 testexplain.sh
other 29132428 2008 testq.csv
other 104 21:02 testshell.sh
other 792 21:39 xxx.txt
I need to show file to new format as follow:
group ... (5 Replies)
Hi all
If my text file as follow:
group size time file
other 58585739 2008 test1.csv
other 122 2008 testcsv.sh
other 164 19:28 testexplain.sh
other 29132428 2008 testq.csv
other 104 21:02 testshell.sh
other 792 21:39 xxx.txt
I need to show file to new format as follow:
group... (1 Reply)
Hi all,
I have an input file like
1,date,company,,
1,date,comapny,,
2,000,,,567,ACT,00,,,,KKG,M1,D45,,67J,+4500000000
2,000,,,567,ACT,00,,,,KKG,M6,D49,,56J,+6000
2,000,,,567,ACT,00,,7,,KKG,M3,D58,,68h,-70000
2,000,,,567,ACT,00,,,,KKG,M9,D95,,34m,0.00
3,total
what i require is
1.I... (2 Replies)
Hi,
I'm new to perl scripting and am trying it out.
I have a file written in the following format:
myfile-MMDDYY where MM is the number of the Month; DD the Day and YY the last two of the year... (Apologies for dumbing this down; I'm trying to be clear).
There is a new file put onto my... (2 Replies)
Hi---Is there's way can write small shell script or perl script open "abc.txt" file and create new "new_abc.txt" file with format output below? Thanks
cat abc.txt
###########################Readme###############################
Contained with this README.TXT file are all of the
file... (7 Replies)