home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <exec/exec.h>
- #include <exec/types.h>
-
- #include <clib/exec_protos.h>
- #include <clib/dos_protos.h>
-
- #include <pragmas/exec_pragmas.h>
- #include <pragmas/dos_pragmas.h>
-
- #include "common.h"
-
- struct DosLibrary *DOSBase;
- struct ExecBase *SysBase;
-
- struct Grow test;
-
- int a=0;
-
- void * __asm __saveds LIBblurgh(register __d1 int val)
- {
- SysBase = *(struct ExecBase **) 4L;
- if (DOSBase = (struct DosLibrary *) OpenLibrary ("dos.library", 0))
- {
-
- a++;
- test.i=10+a;
- strcpy(test.string,"hello!");
-
- Write(Output(),"moocow\n",7);
- if (DOSBase) CloseLibrary ((struct Library *) DOSBase);
- }
- return(&test);
- }
-