WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   Typenumwandlung in C (http://www.wcm.at/forum/showthread.php?t=43655)

The_Beax 20.01.2002 18:01

Typenumwandlung in C
 
Hallo Leute!

Weiß jemand von euch wie ich in C eine Zahl(Int) in einen String umwandeln kann?

MfG
Martin

_m3 20.01.2002 18:21

man sprintf

The_Beax 20.01.2002 18:52

danke sehr

kikakater 21.01.2002 03:55

itoa()
convert integer to string
Function

--------------------------------------------------------------------------------

SYNOPSIS
#include <stdlib.h>

char *itoa(int value, char *string, int radix);


--------------------------------------------------------------------------------

DESCRIPTION
The itoa() function constructs a string representation of an integer.


--------------------------------------------------------------------------------

PARAMETERS

value
Is the integer to be converted to string representation.

string
Points to the buffer that is to hold resulting string. The resulting string may be as long as seventeen bytes.

radix
Is the base of the number; must be in the range 2 - 36.



--------------------------------------------------------------------------------

RETURN VALUES
The function itoa() always returns the value string. There is no error return.


Alle Zeitangaben in WEZ +2. Es ist jetzt 23:24 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag