public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libstdc++/9149: Error on 'itoa' function, feature missing.
@ 2003-01-03  4:26 mrentropy
  0 siblings, 0 replies; only message in thread
From: mrentropy @ 2003-01-03  4:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9149
>Category:       libstdc++
>Synopsis:       Error on 'itoa' function, feature missing.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 02 20:26:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Tom G.
>Release:        gcc version 2.95.4 20011002 (Debian prerelease)
>Organization:
>Environment:
GNU/Debian Linux Sarge/Testing
Kernel 2.4.18-bf2.4
>Description:
the feature of 'itoa' which converts integers to strings is missing from the stdlib.h file.
>How-To-Repeat:
#include <stdio.h>
#include <stdlib.h>

int main ()
{
  int i;
  char buffer [33];
  printf ("Enter a number: ");
  scanf ("%d",&i);
  itoa (i,buffer,10);
  printf ("decimal: %s\n",buffer);
  itoa (i,buffer,16);
  printf ("hexadecimal: %s\n",buffer);
  itoa (i,buffer,2);
  printf ("binary: %s\n",buffer);
  return 0;
}
>Fix:
Input the itoa function in the stdlib.h include file.
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-03  4:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-03  4:26 libstdc++/9149: Error on 'itoa' function, feature missing mrentropy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).