From 7e0f021a9aec35fd8e6725e87e3313b101d26f5e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 27 Jan 2008 11:37:44 +0100 Subject: Initial import (2.0.2-6) --- reference/C/FUNCTIONS/fgets.html | 90 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 reference/C/FUNCTIONS/fgets.html (limited to 'reference/C/FUNCTIONS/fgets.html') diff --git a/reference/C/FUNCTIONS/fgets.html b/reference/C/FUNCTIONS/fgets.html new file mode 100644 index 0000000..204a4bc --- /dev/null +++ b/reference/C/FUNCTIONS/fgets.html @@ -0,0 +1,90 @@ +fgets function + + + + +
+

fgets function

+
+

+fgets is used to read a line of data from an external source.

+


+ +
+Library:   stdio.h
+
+Prototype: char *fgets(char *s, int n, FILE *stream);
+
+Syntax:    char  Data[80];
+	   char *ReturnCode;
+	   FILE *FilePointer;
+
+	   ReturnCode=fgets(Data, 80, FilePointer);
+
+	   ReturnCode == NULL when an error occours. The EOF is 
+	   considered to be an ERROR!
+
+ +
+

Notes

+ +
+ + + example program number one.

+ + + example program number two.

+ + + program comparing the action of gets and fgets when reading STDIN.

+ +


+

See Also:

+ + + +

+ +


+

+

+ + + + +
+ Top + + Master Index + + Keywords + + Functions +
+
+

+


+
Martin Leslie +

+ + + -- cgit v1.2.3-54-g00ecf