;/*
FailAt 1
LC -v -iINCLUDE:CompactH/ remake.c
Blink FROM lib:c.o remake.o icon.o TO Remake LIB lib:lc.lib SC SD ND
Quit
*/

#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <dos.h>
#include <workbench/workbench.h>
#include <workbench/icon.h>
#include <proto/exec.h>
#include <proto/icon.h>


extern struct DiskObject do_icon;

struct Library *IconBase  = NULL;

void main(int argc, char *argv[])
{

  IconBase = (struct Library *)OpenLibrary("icon.library",0);
  if (!IconBase)
    {
      printf("\n\"icon.library\" is on vacation!\n\n");
      exit(20);
    }

  if (!PutDiskObject("IconRemade",&do_icon))
    {
      printf("\nFailed\n\n");
    }
  else
    {
      printf("\nSuccess!\n\n");
    }

  CloseLibrary(IconBase);
}
