Programming and posix getting started
Manuals
Brands
HP Manuals
Software
MPE/iX 6.5 Operating System
1
2
3
4
5
6
7
8
9
10
7
A CGI pr
og
ram
- 1
•
Edit the source fil
e:
>
cp hw
.c
hwcgi
.c
>
vi
hwcgi
.c
#define _POSIX_SOU
RCE
#include <
stdio
.h>
m
ai
n()
{
printf
("Content
-
type: text/plain
\n\
n");
printf
("hello world
\
n");
}
•
Compile an
d link the program:
>
c89
-
o
h
wcgi
h
wcgi
.c
1
...
...
5
6
7
8
9
...
...
42