delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/11/11/22:29:48

From: garbanzo AT hooked DOT net (Alex)
Subject: Re: Missing ANSI functions?
11 Nov 1997 22:29:48 -0800 :
Message-ID: <Pine.BSF.3.96.971111221010.19240E-100000.cygnus.gnu-win32@zippy.dyn.ml.org>
References: <199711112105 DOT NAA28297 AT cirdan DOT cygnus DOT com>
Mime-Version: 1.0
To: Geoffrey Noer <noer AT cygnus DOT com>
Cc: gnu-win32 AT cygnus DOT com


On Tue, 11 Nov 1997, Geoffrey Noer wrote:

> Jon & Sue Trauntvein wrote:
[...]
> > 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 trully missing?
> 
> Neither function is provided by gcc's libraries (including Cygwin32).
> I can't find either in my C library books or in the POSIX spec so they're
> not going to be added.

I think itoa() would make a nice addition, as would snprintf (the BSD
source from FreeBSD compiles without a hitch). itoa could probably be
hacked up with snprintf, say something similar to the below.

char *snprintf(int I)
{
char *blah;
sprintf("%d",I)l
return blah;
}

- alex

-
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