TacOS
0.2
|
#include "stdio.h"
Fonctions | |
int | sprintf (char *str, const char *format,...) |
Écrit un message dans le buffer passé en argument. Plus de détails... | |
int | snprintf (char *str, size_t size, const char *format,...) |
Écrit un message dans le buffer passé en argument avec une limite sur le nombre de caractères à écrire. Plus de détails... | |
int | vsprintf (char *str, const char *format, va_list ap) |
int | vsnprintf (char *str, size_t size, const char *format, va_list ap) |
Copyright (C) 2010-2014 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.
Description de ce que fait le fichier
int snprintf | ( | char * | str, |
size_t | size, | ||
const char * | format, | ||
... | |||
) |
Écrit un message (en utilisant la syntaxe printf habituelle) dans le buffer passé en argument. Le nombre de caractères est limité. Attention, aucune allocation mémoire n'est faite. Attention !!! Cette limitation n'est pas encore implémentée ! Seul un caractère nul sera correctement placé au n-ième caractère.
@see printf @see fprintf @see snprintf @see vprintf @see vfprintf @see vsprintf @see vsnprintf
str | le buffer dans lequel on écrit. |
size | le nombre maximum de caractères à écrire dans le buffer. |
format | chaîne de format précisant le format de conversion pour la sortie. |
... | liste variable d'arguments à afficher. |
int sprintf | ( | char * | str, |
const char * | format, | ||
... | |||
) |
Écrit un message (en utilisant la syntaxe printf habituelle) dans le buffer passé en argument. Attention, aucune allocation mémoire n'est faite.
@see fprintf @see sprintf @see snprintf @see vprintf @see vfprintf @see vsprintf @see vsnprintf
str | le buffer dans lequel on écrit. |
format | chaîne de format précisant le format de conversion pour la sortie. |
... | liste variable d'arguments à afficher. |