home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 310.lha / Icon2c_v1.0 / remake.c < prev    next >
C/C++ Source or Header  |  1980-12-06  |  750b  |  43 lines

  1. ;/*
  2. FailAt 1
  3. LC -v -iINCLUDE:CompactH/ remake.c
  4. Blink FROM lib:c.o remake.o icon.o TO Remake LIB lib:lc.lib SC SD ND
  5. Quit
  6. */
  7.  
  8. #include <stdio.h>
  9. #include <string.h>
  10. #include <ctype.h>
  11. #include <dos.h>
  12. #include <workbench/workbench.h>
  13. #include <workbench/icon.h>
  14. #include <proto/exec.h>
  15. #include <proto/icon.h>
  16.  
  17.  
  18. extern struct DiskObject do_icon;
  19.  
  20. struct Library *IconBase  = NULL;
  21.  
  22. void main(int argc, char *argv[])
  23. {
  24.  
  25.   IconBase = (struct Library *)OpenLibrary("icon.library",0);
  26.   if (!IconBase)
  27.     {
  28.       printf("\n\"icon.library\" is on vacation!\n\n");
  29.       exit(20);
  30.     }
  31.  
  32.   if (!PutDiskObject("IconRemade",&do_icon))
  33.     {
  34.       printf("\nFailed\n\n");
  35.     }
  36.   else
  37.     {
  38.       printf("\nSuccess!\n\n");
  39.     }
  40.  
  41.   CloseLibrary(IconBase);
  42. }
  43.