Re: passing a pointer to a struct to a function that uses ncurses
- From: Flash Gordon <spam@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 31 Mar 2006 15:28:20 +0100
mark.e.nelson@xxxxxxxxx wrote:
In addition to what A. Sinan Unur said...
<snip>
int display_form(form_data *data)
{
FIELD *field[2];
This defines an array of 210 pointers to FIELD...
FORM *my_form;
int ch;
// initialise curses
initscr();
cbreak();
noecho();
keypad(stdscr, TRUE);
// initialise the fields
field[0] = new_field(1, 40, 4, 18, 0, 0);
This writes to the first element of field...
field[1] = new_field(1, 40, 6, 18, 0, 0);
This writes to the second element of field...
field[2] = NULL;
This write to the ... oops, there is no third element to write to!
<snip>
--
Flash Gordon, living in interesting times.
Web site - http://home.flash-gordon.me.uk/
comp.lang.c posting guidelines and intro:
http://clc-wiki.net/wiki/Intro_to_clc
.
- References:
- passing a pointer to a struct to a function that uses ncurses
- From: mark . e . nelson
- passing a pointer to a struct to a function that uses ncurses
- Prev by Date: Copying fread behaviour on char array
- Next by Date: need help with COM in C
- Previous by thread: Re: passing a pointer to a struct to a function that uses ncurses
- Next by thread: Copying fread behaviour on char array
- Index(es):
Relevant Pages
|