Spawn toot

fawakka.c

/*
* Fa wakka with AmigaOS API
*/

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

main(int argc, void *argv[])
{
struct Library *SysBase;
struct Library *DOSBase;

SysBase = *((struct Library **)4UL);
DOSBase = OpenLibrary("dos.library",0);

if (DOSBase) {
Write(Output(),"Fa Wakka!\n",10);
CloseLibrary(DOSBase);
}

return(0);
}

Note:
Syntax error corrected

#spawn #first #toot #programming #C #Amiga #retroComputing

@amiga It's quite evident you just took the "Hello World" example and replaced the string in it without understanding that the 3rd argument for Write() is the data length and must be adjusted if the string length changes.

As a consequence the code currently prints the \0 byte and 1 extra byte after that to standard output.