delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/11/11/19:48:15

From: hfernandes AT geocities DOT com (Fernandes, Hilton)
Subject: Re: Missing ANSI functions?
11 Nov 1997 19:48:15 -0800 :
Message-ID: <199711112340.PAA27261.cygnus.gnu-win32@geocities.com>
References: <01bcee57$f34545a0$ea6bc9cf AT default>
Mime-Version: 1.0
To: "Jon & Sue Trauntvein" <jont AT tcsourceone DOT com>, gnu-win32 AT cygnus DOT com
Cc: "Fernandes, Hilton" <hgfernan AT usp DOT br>

On 10 Nov 97 at 21:11, Jon & Sue Trauntvein <jont AT tcsourceone DOT com> wrote:

> Greetings,
> 
> I have been recently porting some code that I had originally written for Visual C++. 
> In so doing, I have come accross some functions that I thought were a part of the ANSI C 
> library but don't appear to be a part of the standard library distributed
> with the Cygnus compiler. These functions are strrev (reverse a
> "C" string in place) and itoa (convert a signed integer to an
> ASCII string). Is there something that I am doing wrong or are
> these functions truly missing?

Hi!

Neither strrev() nor itoa() are part of ANSI C, as far as my copy of Plauger & 
Brodie's Standard C inform.  

Both can be easily written in C.  It is possible that the versions in the VC
library were written in optimized x86 assembly.  But if you don't use them
very often, the performance lost is negligible.


Best regards,
++Hilton

----
Hilton Fernandes
hfernandes AT geocities DOT com
http://www.geocities.com/SiliconValley/Lakes/5657
URLs and help on C++ programming and Object-Oriented Design
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019