1
0
mirror of https://github.com/cahirwpz/amigaos-cross-toolchain synced 2025-11-24 04:31:31 +00:00
Files
amigaos-cross-toolchain/examples/hello-ks13.c
Krystian Bacławski 465d8cf7b7 Add some tests.
2015-09-08 10:28:55 +02:00

18 lines
379 B
C

/* This example works even for Kickstart 1.3 ! */
#include <proto/exec.h>
#include <proto/dos.h>
int __nocommandline = 1;
int __initlibraries = 0;
struct DosLibrary *DOSBase = NULL;
int main() {
if ((DOSBase = (struct DosLibrary *) OpenLibrary("dos.library", 34))) {
Write(Output(), "Hello world!\n", 13);
CloseLibrary((struct Library *)DOSBase);
}
return 0;
}