TacOS
0.2
|
Version très réduite d'un stdlib, pour le kernel. Plus de détails...
Aller au code source de ce fichier.
Fonctions | |
int | atoi (const char *__nptr) |
int | itoa (char *buf, int base, int d) |
Converti l'entier d en une chaîne de caractère et le stock dans buf. L'entier base permet de spécifier la base à utiliser (decimal ou hexadécimal). Plus de détails... | |
void | itox (char *buf, int d) |
Copyright (C) 2010, 2011, 2012 - TacOS developers.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at http://www.gnu.org/copyleft/gpl.html
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses.
int atoi | ( | const char * | __nptr | ) |
Converti une chaine de caractère en entier.
__nptr | La chaine à traduire. |
int itoa | ( | char * | buf, |
int | base, | ||
int | d | ||
) |
Converti l'entier d en une chaîne de caractère et le stock dans buf. Si base est égal à 'd', alors il interprète d comme étant en décimal et si base est égal à 'x', alors il interprète d comme étant en hexadécimal.
buf | une chaîne de taille suffisament grande pour y stocker le résultat de la transformation. |
base | la base à utiliser pour la conversion ('d' ou 'x'). |
d | le nombre à convertir. |
void itox | ( | char * | buf, |
int | d | ||
) |
Affichage des hexa en longueur fixe, c'est plus commode.
buf | une chaîne de taille suffisament grande pour y stocker le |
d | le nombre à convertir. |