From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,b514935fdcccf632 X-Google-Attributes: gid1164f8,public From: reid@psi.ch (Dr Ivan D Reid, muSR Facility) Subject: Re: C program under DEC/Alpha Date: 1998/03/22 Message-ID: #1/1 X-Deja-AN: 336562522 References: <351460D6.C20A915@cerritos.edu> Organization: Paul Scherrer Institute Reply-To: Ivan.Reid@PSI.ch Newsgroups: comp.sys.dec 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 >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