home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
b
/
bmh02src.zip
/
COMP.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-08-16
|
876b
|
47 lines
/*
comp.c : Copyright Paul Healy, EI9GL, 1992.
911215 : Created
920804 : Replaced mostly with calls to fns in mailer.c
*/
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <dir.h>
#include <process.h>
#include "rc.h"
#include "send.h"
#include "misc.h"
#include "header.h"
#include "help.h"
#include "mailer.h"
#ifdef BMH
#define main comp_main
#endif
int
main(int argc, char *argv[])
{
char filename[256];
FILE *fp;
dohelp(argc, argv, "comp (compose mail)");
if (loadconfig()==-1)
return -1;
if ((fp = tempfile("comp", filename, "w")) == NULL)
return -1;
fprintf(fp, "To: \nCc: \nSubject: \n--------\n");
dosignature(fp);
fclose(fp);
if (call_ed("comp", filename) == -1)
return -1;
return dowhatnow("comp", filename, 1);
}