1
0
mirror of https://github.com/weiju/amiga-stuff synced 2025-12-08 14:58:33 +00:00
Files
amiga-stuff/libraries/example_lib/TestExampleLib.c
2016-06-15 10:33:09 -07:00

25 lines
514 B
C

#include <exec/types.h>
#include <exec/memory.h>
#include <example/example.h>
#include <proto/exec.h>
#include <proto/example.h>
#include <stdio.h>
#include <stdlib.h>
struct ExampleBase *ExampleBase = NULL;
int main(int argc, char **argv)
{
ExampleBase = (APTR) OpenLibrary("example.library", 37);
if (ExampleBase) {
EXF_TestRequest("Test Message", "It works!", "OK");
CloseLibrary((APTR) ExampleBase);
exit(0);
}
printf("\nLibrary opening failed\n");
exit(20);
}