home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / acorn / tech / 13 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  992 b 

  1. Path: sparky!uunet!mcsun!uknet!icdoc!sot-ecs!snb90
  2. From: snb90@uk.ac.soton.ecs (Stewart Brodie)
  3. Newsgroups: comp.sys.acorn.tech
  4. Subject: res_init()
  5. Message-ID: <12394@ecs.soton.ac.uk>
  6. Date: 30 Jul 92 19:15:11 GMT
  7. Sender: news@ecs.soton.ac.uk
  8. Organization: University of Southampton, UK
  9. Lines: 16
  10. Nntp-Posting-Host: herbert
  11. Originator: snb90@herbert
  12.  
  13. Small query about res_init().  
  14.  
  15. I have written a C program which uses the RISC OS library, and I want to
  16. comply with the guidelines for software by using a different OS variable
  17. to point to the R/W stuff from the Read Only stuff.  So I have set up:
  18. Program$Dir and ProgramData$Dir.  
  19.  
  20. However, what I want to know is, is it safe to call res_init TWICE in
  21. the same program, ie. after doing template_init() and resspr_init() with
  22. the first variable, can I switch it?  It seems to work but is it safe,
  23. or might some of the RISC OS library modules start to call the res
  24. functions again during execution?
  25.  
  26. --
  27. Stewart Brodie
  28. snb90@uk.ac.soton.ecs
  29.