/* TinyHello.c - Copyright (C) 1995 Bernardo Innocenti
 *
 * An example to show how to write a minimal Amiga program
 * in C without using any startup code and static library routines.
 */

#include <exec/types.h>

#include <proto/exec.h>
#include <proto/dos.h>

#define MSG "Hello, world!\n"
#define MSG_LEN __builtin_strlen (MSG)


void _main (void)
{
	struct ExecBase *SysBase = *((struct ExecBase **) 4);
	struct Library *DOSBase;

	DOSBase = OpenLibrary ("dos.library", 0);

	Write (Output(), MSG, MSG_LEN);

	CloseLibrary (DOSBase);
}
