home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 262.lha / ACResLib_v1.1 / mylib.c < prev    next >
C/C++ Source or Header  |  1989-06-29  |  802b  |  48 lines

  1. /* this is a test library */
  2. #include <exec/types.h>
  3.  
  4. #define LIBNAME mylib.library
  5. #define BASE MyBase
  6. #define VERSION 2
  7. #define REVISION 1
  8. #define LIBID This is mylib.library 2.1
  9.  
  10. /* The lines above are only to allow the user to change the name of the
  11.    library and change the library's base name.  The base name is only used
  12.    if the #pragma is used.  Unfortunately, the #pragma is limited to only
  13.    6 parameters.  To use all 12, you will have to link your program with
  14.    the stub file. */
  15.  
  16. LONG GetDown()
  17. {
  18.      return (77);
  19. }
  20.  
  21. ULONG Double(arg)
  22. ULONG arg;
  23. {
  24.      return (2 * arg);
  25. }
  26.  
  27. LONG Triple(arg)
  28. LONG arg;
  29. {
  30.     arg *= 3;
  31.  
  32.     return ((LONG)arg);
  33. }
  34.  
  35. LONG Add(apples,oranges)
  36. LONG apples,oranges;
  37. {
  38.     return(apples+oranges);
  39. }
  40.  
  41. char *StrCat(a,b)
  42.   char *a,*b;
  43. {
  44.   strcat(a,b);
  45.   return(a);
  46. }
  47.  
  48.