TacOS
0.2
|
Fonctions | |
char * | fgets (char *s, int size, FILE *stream) |
Lit au plus size-1 caractères depuis le stream passé en argument. Plus de détails... | |
int | fgetc (FILE *stream) |
Lit un caractère depuis le flux stream. Plus de détails... | |
int | getchar (void) |
lit un caractère depuis stdin. Plus de détails... | |
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 fgetc | ( | FILE * | stream | ) |
Fgetc lit le caractère suivant depuis le flux stream.
stream | le stream depuis lequel on lit le caractère. |
char* fgets | ( | char * | s, |
int | size, | ||
FILE * | stream | ||
) |
Lit au plus size-1 caractères depuis le stream passé en argument. La lecture s'arrête par EOF, retour chariot ou si size-1 caractères ont été lus. Attention, il n'y a pas d'allocation mémoire pour le buffer où on écrit. Le caractère nul est placé à la fin de la chaîne.
s | buffer où on va écrire ce qu'on lit sur stream. |
size | la taille du buffer. |
stream | le stream depuis lequel on lit les caractères. |
int getchar | ( | void | ) |
Fonction de la libc. getchar est équivalent à fgetc(stdin).