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 >
Wrap
C/C++ Source or Header
|
1980-12-06
|
750b
|
43 lines
;/*
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);
}