WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   wer erzählt mir was über "itoa" unter unix? (http://www.wcm.at/forum/showthread.php?t=87815)

frazzz 12.02.2003 09:03

wer erzählt mir was über "itoa" unter unix?
 
wie schon der titel sagt.

und was könnte kaputt sein an dieser funktion?

_m3 13.02.2003 21:47

http://www.iota-six.co.uk/c/28a_atoi.htm
http://developer.novell.com/ndk/doc/...ta/sdk959.html
Zitat:

itoa

Converts an integer to a string.

Library: LibC

Classification: ANSI

Service: General C Services
Syntax

#include <stdlib.h>

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


Parameters

value
(IN) Specifies the integer value to be converted.

buffer
(OUT) Points to the character array.

radix
(IN) Specifies the base to be used in converting the integer. It must be in the range of 2 - 36.


Return Values

Returns the pointer to the result.

Remarks

The itoa function converts the integer value into the equivalent string in base radix notation, storing the result in the character array pointed to by buffer. A null character is appended to the result.

The size of buffer must be at least (8 * sizeof (int) + 1) bytes when converting values in base 2.

If the value of radix is 10 and value is negative, the first character stored in buffer is a minus sign.


Alle Zeitangaben in WEZ +2. Es ist jetzt 15:41 Uhr.

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