From p.dalgaard@biostat.ku.dk  Thu Nov  4 09:56:58 1999
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 04 Nov 1999 10:56:58 +0100
Subject: R_OpenSiteFile: Do not use a null ptr as filename in fopen (PR#312)
In-Reply-To: guido@hal.stat.unipd.it's message of "Thu, 4 Nov 1999 10:50:55 +0100 (MET)"
References: <199911040950.KAA28506@pubhealth.ku.dk>
Message-ID: <x2k8ny8tqt.fsf@blueberry.kubism.ku.dk>

guido@hal.stat.unipd.it writes:

> The same happens also under Windows where, for this reason, 
> 'R_fopen' is defined as
>  
> FILE *R_fopen(const char *filename, const char *mode)
> {
>     if (!filename)
> 	return NULL;
>     return (fopen(filename, mode));
> }

..which I was just in the process of implementing for the Unix
version.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


R_OpenSiteFile: Do not use a null ptr as filename in fopen (PR#312)
Peter Dalgaard BSA