fgets
De cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
<tbody> </tbody>| Déclaré dans l'en-tête <stdio.h>
|
||
char *fgets( char *str, int count, FILE *stream ); |
||
Lit à la plupart des personnages
count - 1 le flux de fichiers donnés et les stocke dans str. La chaîne de caractères est toujours produite NULL-fin. L'analyse s'arrête si la fin de fichier se produit ou un caractère de nouvelle ligne se trouve, dans ce cas, str contiendra ce caractère de saut de ligne .Original:
Reads at most
count - 1 characters from the given file stream and stores them in str. The produced character string is always NULL-terminated. Parsing stops if end-of-file occurs or a newline character is found, in which case str will contain that newline character.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Paramètres
| str | - | Chaîne à lire les caractères
Original: string to read the characters to The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| count | - | la longueur de
strOriginal: the length of strThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| stream | - | déposer flux pour lire les données à partir de
Original: file stream to read the data from The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Retourne la valeur
str en cas de succès, NULL sur une erreurOriginal:
str on success, NULL on an errorThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Voir aussi
lit l'entrée en forme à partir stdin, un flux de fichier ou un tampon Original: reads formatted input from stdin, a file stream or a buffer The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
lit une chaîne de caractères à partir stdinOriginal: reads a character string from stdinThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
écrit une chaîne de caractères dans un flux fichier Original: writes a character string to a file stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
C++ documentation for fgets
| |