From p.dalgaard@biostat.ku.dk  Thu Aug 19 18:05:23 1999
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 19 Aug 1999 19:05:23 +0200
Subject: date() should not append a final "\n" ?!?
In-Reply-To: Kurt Hornik's message of "Thu, 19 Aug 1999 12:11:09 +0200 (CEST)"
References: <199908190845.KAA24041@sophie.ethz.ch> 	<14267.50386.581977.851244@galadriel.ci.tuwien.ac.at> 	<199908190938.LAA24130@sophie.ethz.ch> 	<14267.53714.885909.438577@fangorn.ci.tuwien.ac.at> 	<199908190948.LAA24138@sophie.ethz.ch> <14267.55357.387
Message-ID: <x2aernsnu4.fsf@blueberry.kubism.ku.dk>

Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> writes:

> Suggestion:
> 
> 	return strtok(ctime(&t), "\n");

s<-ctime(&t); s[25] = '\0'; return s;

This won't work if s is read-only (which I don't think it is), but
neither will strtok since it pokes a null in the same spot....

-- 
   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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


date() should not append a final "\n" ?!?
Peter Dalgaard BSA