home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5098 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.2 KB  |  42 lines

  1. Path: god.bel.alcatel.be!nlev00!barnhoorn
  2. From: barnhoorn@nlev00 ()
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: CreateProc
  5. Date: 8 Mar 1996 08:04:30 GMT
  6. Organization: Alcatel Bell
  7. Distribution: world
  8. Message-ID: <4hopme$5qo@btmpjg.god.bel.alcatel.be>
  9. References: <9603072045.AA0011d@cliffe.demon.co.uk>
  10. Reply-To: barnhoorn@nlev00 ()
  11. NNTP-Posting-Host: 138.203.178.61
  12. X-Newsreader: mxrn 6.18-10
  13.  
  14.  
  15. In article <9603072045.AA0011d@cliffe.demon.co.uk>, Steve Chapman <steve@cliffe.demon.co.uk> writes:
  16. >
  17. >How do i use CreateNewProc or CreateProc as i can
  18. >not find any examples on how to use it.
  19. >
  20.  
  21. void my_function(void)
  22. {
  23.     printf("Yiha\n");
  24. }
  25.  
  26. main()
  27. {
  28.     /* some code... */
  29.         CreateNewProcTags(
  30.                         NP_Entry, my_function,
  31.                         NP_StackSize, 1024*8,
  32.                         NP_Name, "My name",
  33.                         TAG_END);
  34. }
  35. -- 
  36. ---------------------------------------------------------------------------
  37. Jaco Barnhoorn               barnie@xs4all.nl
  38. Software Test Engineer       barnhoorn%nlev00@btmv56.se.bel.alcatel.be
  39. Alcatel Telecom Systems
  40. Rijswijk, The Netherlands
  41. ---------------------------------------------------------------------------
  42.