delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/30/11:53:30

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Reply-To: <wpmccormick AT covad DOT net>
From: "Bill McCormick" <wpmccormick AT covad DOT net>
To: "Frank Wagner" <f DOT wagner AT gmx DOT net>, <cygwin AT cygwin DOT com>
Subject: RE: funktion itoa
Date: Wed, 30 Jul 2003 10:51:55 -0500
Message-ID: <NDBBLLFMLFMANIDPNADCIENKFCAA.wpmccormick@covad.net>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
In-Reply-To: <22824.1059578549@www13.gmx.net>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Importance: Normal

>
> I need to convert a integer to a string and in this case I want to use the
> itoa funktion call.
> I found a description of this funktion that explains:
>
> char *  itoa ( int value, char * buffer, int radix );
>
> Wich is defined in stdlib.h.
>
> When I try to compile I get the follwing error:  implicit declaration of
> function `int itoa(...)'
>
> My function call looks like: itoa(B->anzahl, menge, 10);
>
> When I look into stdlib.h will find the following line:
>
> int	_EXFUN(atoi,(const char *__nptr));
>
> Here it is defined with a int as return value.
>
> What is my description wrong and how must I use this funktion?
>
> Thanks a lot in advance
>
> Frank


I think this is not the right list to post this type of question to. Your
qustion is a C programming issue.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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