Région de recherche :

Date :

https://stackoverflow.com › questions › 1782080

What is EOF in the C programming language? - Stack Overflow

@LaurieStearn: In C, EOF is really just a macro that expands to a constant integer expression (typically defined in some header as something like: #define EOF (-1)) and is therefore typically 4 bytes wide. The EOF macro doesn't signal anything, since it is just a value.

https://stackoverflow.com › questions › 4358728

End of File (EOF) in C - Stack Overflow

If you're typing at the terminal and you want to provoke an end-of-file, use CTRL-D (unix-style systems) or CTRL-Z (Windows). Then after all the input has been read, getchar() will return EOF, and hence getchar() != EOF will be false, and the loop will terminate.

https://www.geeksforgeeks.org › eof-and-feof-in-c

EOF, getc() and feof() in C - GeeksforGeeks

Learn how to use getc () and feof () functions in C to read and check the end of file. See the syntax, parameters, return values and examples of these functions.

https://www.delftstack.com › fr › howto › c › end-of-file-character-c

End of File (EOF) en C - Delft Stack

Exemple de EOF en C. Par exemple, regardez le code C suivant pour afficher le contenu d’un fichier texte nommé shanii.txt à l’écran. La valeur de getc() est d’abord comparée à EOF.

https://www.delftstack.com › howto › c › end-of-file-character-c

End of File (EOF) in C - Delft Stack

When the end of the file is reached in C, the getc() function returns EOF. getc() will also return end-of-file (EOF) if it is unsuccessful. Therefore, it is not sufficient to only compare the value provided by getc() with EOF to determine whether or not the file has reached its end.

End of File (EOF) in C - Delft Stack

https://www.skillvertex.com › blog › eof-getc-and-feof-in-c

EOF, Getc() And Feof() In C - skillvertex.com

Learn how to use getc(), feof() and EOF to read and check the end of a file in C programming. See syntax, examples and FAQs on these functions and their differences.

EOF, Getc() And Feof() In C - skillvertex.com

https://www.codewithc.com › mastering-eof-in-c-a-comprehensive-guide

Mastering Eof in C: A Comprehensive Guide - Code with C

Learn how to use EOF (end of file) in C to read and write files, handle errors, and manage memory. See examples, explanations, and tips for mastering EOF in C.

https://www.tutorialspoint.com › explain-the-end-of-file-eof-with-a-c-program

Explain the END OF FILE (EOF) with a C Program - Online Tutorials Library

Learn how to use EOF to indicate the end of input in C programming. See the algorithm, example code and output for writing and reading text files with EOF.

https://www.delftstack.com › fr › howto › c › feof-stdin-in-c

Utilisez la fonction feof en C - Delft Stack

La fonction feof fait partie de la bibliothèque d’entrées/sorties standard du C, définie dans l’en-tête <stdio.h>. La fonction feof vérifie l’indicateur de fin de fichier sur le flux de fichiers donné et renvoie un entier non nul si EOF est défini. Elle prend le pointeur FILE comme seul argument.

https://thelinuxcode.com › eof-in-c-programming

Demystifying EOF: An Extensive Guide to End-of-File in C Programming

It‘s a special value defined in C used to indicate the end of a file or stream has been reached during input operations. More specifically, EOF is defined as the integer constant -1 in C. For example: #include <stdio.h> int main() { printf("Value of EOF: %d\n", EOF); return 0; }