home *** CD-ROM | disk | FTP | other *** search
- // Written by and contributed to the public domain by
- // Michael Lecuyer, Viola. DE, December 1993.
-
- #include <stdio.h>
- #include <string.h>
- #include <stdlib.h>
- #include <time.h>
- #include <dos.h>
- #include <io.h>
-
- // Include this for access to the JAM structures and flags.
-
- #include "jammb.h"
-
- #include "writejam.h"
-
- main()
- {
- int ret;
- char *jambase = "C:\\n\\test";
- char *from = "System Operator";
- char *to = "Michael Lecuyer";
- char *subject = "Testing the jamwrite";
- char *text = "This is a test message that we will want to test\n"
- "which should be easy enough\n";
-
- JAMcopyright();
-
- ret = write_jam(jambase, from, to, subject, text, MSG_LOCAL | MSG_PRIVATE);
-
- if (ret == 0)
- printf("write to jam failed errno = %d\n", errno);
-
- return 0;
- }
-
-
-