Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: reid@psi.ch (Dr Ivan D Reid, muSR Facility)
Subject: Re: C program under DEC/Alpha
Date: 1998/03/22	[thread overview]
Message-ID: <slrn6hajbe.g202q5.reid@PSW086.PSI.CH> (raw)
In-Reply-To: 351460D6.C20A915@cerritos.edu


In article <351460D6.C20A915@cerritos.edu>, lakha001@cerritos.edu wrote:
>Can someone help me out with this. I am trying to write a simple C
>program on DEC/Alpha system. For some reason, it just won't compile. I
>am not sure what I am missing out. I looked at the HELP pages on the
>system and the CC run time routines do show popen as a command.

>rem The program itself.

>#include <stdio.h>

>void main()
>{
>        FILE *fi;
	FILE *popen();
	int pclose();
/* Takes care of the assumed function types and mismatch warnings */

>        fi = popen("PMDF MAIL", "w");
>        fprintf(fi, "send\n");
>        fprintf(fi, "lakha001@cerritos.edu\n\n");
>        fprintf(fi, "This is a test\n");
>        fprintf(fi, "Mail sent using C program\n");
>        fprintf(fi, "^Z\n");
>        pclose(new);
	pclose(fi);
/* typing/transcription error there! */

>Please respond directly by mailing me back since I dont frequent the
>newsgroups.

	Ask here, get an answer here...

-- 
Ivan Reid, Paul Scherrer Institute, CH.     			reid@psi.ch
 Support Jayne Hitchcock: http://www.geocities.com/hollywood/6172/helpjane.htm



  reply	other threads:[~1998-03-22  5:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-03-21  5:00 C program under DEC/Alpha lakha001
1998-03-22  5:00 ` Dr Ivan D Reid, muSR Facility [this message]
1998-03-22  5:00   ` lakha001
1998-03-23  5:00   ` Dr Ivan D Reid, muSR Facility
1998-03-23  5:00     ` Greg Thomas
1998-03-23  5:00       ` lakha001
1998-03-24  5:00         ` Greg Thomas
1998-03-24  5:00 ` Hoff Hoffman
1998-03-30  5:00 ` Bob Koehler
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox