/* Copyright (C) Magna Carta Software, Inc. 1988-1991. All Rights Reserved. FAX00.C: 1) Sends a FAX using via a CAS-compatible device (e.g. the Intel Connection CoProcessor (R), or SatisFaxion Card. NOTE: An CAS-compatible fax device must be present in the machine for this example to be used. The target can be any compatible FAX device. */ #include #include char *logon = "\n\nCopyright (C) Magna Carta Software, Inc. 1989. All Rights Reserved." "\nFAX -- The DOS command line FAX software for the CAS Compatible FAX devices." "\nThis program was created with Magna Carta's \"C Communications Toolkit\"." "\nMagna Carta Software, Inc." "\nP.O. Box 475594" "\nGarland, TX 75047" "\nVoice: (214) 226-6909, FAX: (214) 226-0386, BBS: (214) 226-8088."; int main(int argc, char *argv[]); int main(int argc, char *argv[]) { static CAS c = {0}; short ret; fputs(logon, stderr); if (argc < 3) { fputs("\n\nSyntax: FAX00 ", stderr); return (-2); } if (!isacas()) { fputs("Connection Coprocessor Not Installed", stderr); return (EOF); } ret = cas_send_one_file(&c, argv[1], NULL, argv[2]); if (ret < 0) fputs("\nError: ", stderr); return (ret); }