home *** CD-ROM | disk | FTP | other *** search
/ Turbo Toolbox / Turbo_Toolbox.iso / extra18 / toolbox / prntdemo.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-21  |  1003 b   |  35 lines

  1. /* ------------------------------------------------- */
  2. /*                   PRNTDEMO.C                      */
  3. /*     Funktion: Demoprogramm zu M_SPOOLE.C          */
  4. /*     M_SPOOLE.C über Projektdatei einbinden!!!     */
  5. /* ------------------------------------------------- */
  6. #include <stdio.h>
  7. #include <conio.h>
  8. #include <string.h>
  9.  
  10.  
  11. /* --- Funktionsprototypen                           */
  12. int m_print(char *Fname);
  13. int m_installed (void);
  14.  
  15. void main()
  16. {
  17. char filename[80];
  18. unsigned int Treiber_Status, Status;
  19.  
  20.  clrscr();
  21.  Treiber_Status = m_installed();
  22.  if (Treiber_Status != 255)
  23.    printf("\nPRINT.COM ist NICHT installiert!! \n\n");
  24.  else
  25.      {
  26.       printf("Geben Sie einen Filenamen ein: ");
  27.       gets(filename);
  28.       Status = m_print(filename);
  29.       if (Status && (Status != 0x15))
  30.         printf("\nFehler beim Ausdrucken!\n");
  31.      }
  32. }
  33. /* ------------------------------------------------- */
  34. /*              Ende von PRNTDEMO.C                  */
  35.