Article View: comp.sys.acorn.tech
Article #91res_init()
From: Stewart Brodie
Date: Thu, 30 Jul 1992 19:15
Date: Thu, 30 Jul 1992 19:15
16 lines
1020 bytes
1020 bytes
Small query about res_init(). I have written a C program which uses the RISC OS library, and I want to comply with the guidelines for software by using a different OS variable to point to the R/W stuff from the Read Only stuff. So I have set up: Program$Dir and ProgramData$Dir. However, what I want to know is, is it safe to call res_init TWICE in the same program, ie. after doing template_init() and resspr_init() with the first variable, can I switch it? It seems to work but is it safe, or might some of the RISC OS library modules start to call the res functions again during execution? -- Stewart Brodie snb90@uk.ac.soton.ecs
Technical Details
Message-ID:
<12394@ecs.soton.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!icdoc!sot-ecs!snb90Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!icdoc!sot-ecs!snb90 From: snb90@uk.ac.soton.ecs (Stewart Brodie) Newsgroups: comp.sys.acorn.tech Subject: res_init() Message-ID: <12394@ecs.soton.ac.uk> Date: 30 Jul 92 19:15:11 GMT Sender: news@ecs.soton.ac.uk Organization: University of Southampton, UK Lines: 16 Nntp-Posting-Host: herbert Originator: snb90@herbert