home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 1
/
GoldFishApril1994_CD1.img
/
d1xx
/
d179
/
launch
/
wbcleanup.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-02-25
|
383b
|
20 lines
#include <exec/memory.h>
#include <workbench/startup.h>
#include <workbench/workbench.h>
struct MsgPort *rport, *CreatePort();
struct WBStartup *startup, *GetMsg();
main()
{
if(!(rport = CreatePort("Workbench.Cleanup", 0))) {
printf("Can't create Workbench.Cleanup port.\n");
exit(20);
}
while(1) {
WaitPort(rport);
startup = GetMsg(rport);
FreeStartup(startup);
}
}