home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga ISO Collection
/
AmigaUtilCD2.iso
/
Programming
/
C
/
SASC6571.LZX
/
examples
/
nostartup
/
example_2
/
hello.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1996-12-24
|
312 b
|
15 lines
#include <string.h>
#include <proto/dos.h>
#include <proto/exec.h>
#define MSG "Hello, World!\n"
void hello(void)
{
struct DosLibrary *DOSBase =
(struct DosLibrary *)OpenLibrary("dos.library", 0L);
Write(Output(), MSG, strlen(MSG));
CloseLibrary((struct Library *)DOSBase);
}