summaryrefslogtreecommitdiffstats
path: root/lib/libcurses/PSD.doc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcurses/PSD.doc')
-rw-r--r--lib/libcurses/PSD.doc/ex1.c10
-rw-r--r--lib/libcurses/PSD.doc/ex2.c4
-rw-r--r--lib/libcurses/PSD.doc/life.c2
3 files changed, 8 insertions, 8 deletions
diff --git a/lib/libcurses/PSD.doc/ex1.c b/lib/libcurses/PSD.doc/ex1.c
index 02ed9b9..97d8432 100644
--- a/lib/libcurses/PSD.doc/ex1.c
+++ b/lib/libcurses/PSD.doc/ex1.c
@@ -37,7 +37,7 @@
#include <signal.h>
-#define YSIZE 10
+#define YSIZE 10
#define XSIZE 20
int quit();
@@ -55,7 +55,7 @@ main()
crmode(); /* We want cbreak mode */
noecho(); /* We want to have control of chars */
delwin(stdscr); /* Create our own stdscr */
- stdscr = newwin(YSIZE, XSIZE, 10, 35);
+ stdscr = newwin(YSIZE, XSIZE, 10, 35);
flushok(stdscr, TRUE); /* Enable flushing of stdout */
scrollok(stdscr, TRUE); /* Enable scrolling */
erase(); /* Initially, clear the screen */
@@ -97,6 +97,6 @@ quit()
exit(0);
}
-
-
-
+
+
+
diff --git a/lib/libcurses/PSD.doc/ex2.c b/lib/libcurses/PSD.doc/ex2.c
index 13e8f29..7b23b61 100644
--- a/lib/libcurses/PSD.doc/ex2.c
+++ b/lib/libcurses/PSD.doc/ex2.c
@@ -52,7 +52,7 @@ main()
char id[100];
int hh = 0;
int curx, cury, base, arg;
-
+
initscr();
signal(SIGINT, quit);
crmode();
@@ -181,7 +181,7 @@ main()
insertln();
sprintf(id, "%d: ", base);
addstr(id);
- for (j = 0; j < XSIZE - strlen(id) - 2; j++)
+ for (j = 0; j < XSIZE - strlen(id) - 2; j++)
addch('0' + (base % 10));
cury++;
} else if (cury >= YSIZE) {
diff --git a/lib/libcurses/PSD.doc/life.c b/lib/libcurses/PSD.doc/life.c
index 72febba..5ecd07f 100644
--- a/lib/libcurses/PSD.doc/life.c
+++ b/lib/libcurses/PSD.doc/life.c
@@ -128,7 +128,7 @@ getstart()
if (Head != NULL) /* start new list */
dellist(Head);
- Head = malloc(sizeof (LIST));
+ Head = malloc(sizeof (LIST));
/*
* loop through the screen looking for 'x's, and add a list
OpenPOWER on IntegriCloud