WCM - Das österreichische Computer Magazin Forenübersicht
 

Zurück   WCM Forum > Rat & Tat > Programmierung

Programmierung Rat & Tat für Programmierer

Microsoft KARRIERECAMPUS

Antwort
 
Themen-Optionen Ansicht
Alt 12.02.2003, 09:03   #1
frazzz
Inventar
 
Registriert seit: 11.01.2003
Beiträge: 5.292


Frage wer erzählt mir was über "itoa" unter unix?

wie schon der titel sagt.

und was könnte kaputt sein an dieser funktion?
____________________________________
pssst

tanj


frazzz ist offline   Mit Zitat antworten
Alt 13.02.2003, 21:47   #2
_m3
Inventar
 
Registriert seit: 24.09.2001
Beiträge: 7.335


Standard

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.
____________________________________
Weiterhin zu finden auf http://martin.leyrer.priv.at , http://twitter.com/leyrer , http://www.debattierclub.net/ , http://www.tratschen.at/ und via Instant Messaging auf Jabber: m3 <ät> cargal.org .
_m3 ist offline   Mit Zitat antworten
Antwort


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.

Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 10:50 Uhr.


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