Fixed binary search: no more infinite loops when vendor is unknown.
[tangerine.git] / compiler / c_lib / source / test_prg / TestExampleLib.c
blobd1ceede9f38961d2bb4299dd93f535e967a944fe
1 /*
2 ** $VER: TextExampleLib.c 37.1 (4.12.96)
3 **
4 ** Demo program for example.library
5 **
6 ** (C) Copyright 1996 Andreas R. Kleinert
7 ** All Rights Reserved.
8 */
10 #include <exec/types.h>
11 #include <exec/memory.h>
13 #include <example/example.h>
15 #include <proto/exec.h>
16 #include <proto/example.h>
18 #include <stdio.h>
19 #include <stdlib.h>
21 void main(long argc, char **argv)
23 struct ExampleBase *ExampleBase = NULL;
25 ExampleBase = (APTR) OpenLibrary(EXAMPLENAME, 37);
27 if(ExampleBase)
29 EXF_TestRequest("Test Message", "It works!", "OK");
31 CloseLibrary((APTR) ExampleBase);
33 exit(0);
36 else
37 printf ("\nLibrary opening failed\n");
39 exit(20);