home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 7 / FreshFishVol7.bin / bbs / gnu / aplusplus-1.01-src.lha / GNU / src / amiga / APlusPlus-1.01 / amiproc / simple.c < prev    next >
C/C++ Source or Header  |  1994-01-14  |  287b  |  23 lines

  1. #include <stdio.h>
  2. #include "amiproc.h"
  3.  
  4. int func(void *string)
  5. {
  6.    printf("%s\n", string);
  7.    return 0;
  8. }
  9.  
  10. int main(void)
  11. {
  12.    int rc;
  13.    struct AmiProcMsg *apm;
  14.  
  15.    if(apm = AmiProc_Start(func, "This is a test"))
  16.       rc = AmiProc_Wait(apm);
  17.    else
  18.       rc = 20;
  19.  
  20.    return rc;
  21. }
  22.  
  23.