void getpipe(void);
void putpipe(unsigned u, int flag);
-int main(argc, argv)
-int argc;
-char **argv;
+int main(int argc, char **argv)
{
char c, *cp;
int j, k, fdtmp;
*
* If s is a message, write it to stderr. Flush buffers if needed. Then exit.
*/
-void die(s)
-char *s;
+void die(char *s)
{
/* Flush stdout buffer if needed */
if (obufind != 0) {
*
* Put a char to stdout.
*/
-void myputc(c)
-unsigned c;
+void myputc(unsigned c)
{
obuf[obufind++] = c;
if (obufind >= BUFSZ) { /* if stdout buffer full */
*
* put an index into the pipeline.
*/
-void putpipe(u, flag)
-unsigned u;
-int flag;
+void putpipe(unsigned u, int flag)
{
static unsigned short flags, *flagp;
static int n = 0; /* number of flags in flags */