Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!wuarchive!rex!ames!eos!shelby!csli!poser From: poser@csli.Stanford.EDU (Bill Poser) Newsgroups: comp.lang.c Subject: Re: A question (with apologies) Message-ID: <11140@csli.Stanford.EDU> Date: 25 Nov 89 19:43:51 GMT References: <777@stat.fsu.edu> Sender: poser@csli.Stanford.EDU (Bill Poser) Reply-To: poser@csli.stanford.edu (Bill Poser) Distribution: usa Organization: Center for the Study of Language and Information, Stanford U. Lines: 17 (Regarding query about string handling functions in C.) The standard library contains functions for searching and concatenation into space provided by the caller, but not for automatic allocation. Most such things are easily written. itoa is not a standard library function, but is easily emulated by: sprintf(buf,"%d",foo) K&R give a version of itoa that one can easily type in. I have written a modified version of this, that runs somewhat faster, which I will send by mail. However, at least in my experience even a fast itoa is only around 20% faster than using sprintf as above, so it may not be worth the bother. Bill Poser