Source Code File 13-01_newpad1
13-01_newpad1.c
#include <ncurses.h> int main() { WINDOW *p; initscr(); /* create a new pad */ p = newpad(50,100); if( p==NULL ) { endwin(); puts("Unable to create pad"); return 1; } addstr("New pad created"); refresh(); getch(); endwin(); return 0; }
Output Screenshot
Notes
* This code doesn't display the pad, nor is any text output to the pad.
Copyright © 1997-2025 by QPBC.
All rights reserved