ferror(3S)ferror(3S)NAME
ferror(), feof(), clearerr(), ferror_unlocked(), feof_unlocked(), clearerr_unlocked() - stream status inquiries
SYNOPSIS
Obsolescent Interfaces
DESCRIPTION
Returns nonzero when an I/O error
has previously occurred reading from or writing to the named stream, otherwise zero. Unless cleared by or unless the spe-
cific stdio routine so indicates, the error indication lasts until the stream is closed.
Returns nonzero
when EOF has previously been detected reading the named input stream, otherwise zero.
Resets the error indicator and EOF indicator on the named
stream to zero.
Obsolescent Interfaces
and stream status inquiries.
WARNINGS
All these routines are implemented both as library functions and as macros. The macro versions, which are used by default, are defined in
To obtain the library function, either use a to remove the macro definition or, if compiling in ANSI-C mode, enclose the function name in
parentheses or use the function address. The following example illustrates each of these methods :
Reentrant Interfaces
If is defined before including the locked versions of the library functions for and are used by default.
and are obsolescent interfaces supported only for compatibility with existing DCE applications. New multithreaded applications should use
and
SEE ALSO open(2), flockfile(3S), fopen(3S), thread_safety(5).
STANDARDS CONFORMANCE ferror(3S)
Check Out this Related Man Page
ferror(3C)ferror(3C)NAME
ferror, feof, clearerr, fileno - stream status inquiries
SYNOPSIS
#include <stdio.h>
int ferror(FILE *stream);
int feof(FILE *stream);
void clearerr(FILE *stream);
int fileno(FILE *stream);
The ferror() function returns a non-zero value when an error has previously occurred reading from or writing to the named stream (see
intro(3)). It returns 0 otherwise.
The feof() function returns a non-zero value when EOF has previously been detected reading the named input stream. It returns 0 otherwise.
The clearerr() function resets the error indicator and EOF indicator to 0 on the named stream.
The fileno() function returns the integer file descriptor associated with the named stream; see open(2).
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
open(2), intro(3), fopen(3C), stdio(3C), attributes(5), standards(5)
17 Feb 2005 ferror(3C)
Hello,
I have a big data file (160 MB) full of records with pipe(|) delimited those fields. I`m sorting the file on the first field.
I'm trying to sort with "sort" command and it brings me 6 minutes.
I have tried with some transformation methods in perl but it results "Out of memory". I was... (2 Replies)
Good afternoon to you all
I need help
I need a script that will allow to encrypt the system´s timestamp;
I have to use a pre-shared key to cipher the timestamp, so basically I need:
1st) cipher with a pre-shared key
2nd) encrypt the timestamp
3rd) encode on a base64
the output... (1 Reply)
Hi
I need to get the date of 50th day from the last friday for one of the calculation into variable in Unix script. The format required is YYYYMMDD. I have solaris OS and dont have GNU date. I would appreciate if some one can help me with this.
It can be a onliner or function or block of code.
... (7 Replies)
Hello,
I am trying to read a text file into linked list, but always got the first and last records wrong.
1) The problem looks related to the initialization of the node temp with malloc(), but could not figure it out. No error/warning at compiling, though.
2) The output file is empty,... (10 Replies)
This seems like it should be an easy problem, but for some reason I am struggling with the solution.
I simply want to replace all characters after the first 3 characters with another character, preferably with sed.
Thanks in advance.
Like this, but producing the proper number of *'s:
sed... (30 Replies)
Another project, another bump in the road and another chance to learn. I've been trying to open gzipped files and parse data from them and hit a snag. I have data in gzips with a place followed by an ip or ip range sort of like this:
Some place:x.x.x.x-x.x.x.x
I was able to modify some code... (6 Replies)
Hello all,
I'm here again with new trouble. I need to find any possible way to apply excel macro on excel file in SLES server, or to convert that macro somehow.
Could you please share your ideas, and help me with this? Thank you in advance
ps (attached macro is with changed extension,... (14 Replies)
what i should to do next? read full query first please!!
harshbhu@harshbhu:/usr/local/gg/10.6/updates/Source$ sudo ./install_software
sudo: unable to resolve host harshbhu
install_software version 2017/06/29
GAMIT and GLOBK to be installed into /usr/local/gg/10.6/updates/Source
If... (0 Replies)
harshbhu@harshbhu:/usr/local/gg/10.6/updates/Source$ sudo ./install_softwaresudo: unable to resolve host harshbhu
password for harshbhu:
install_software version 2017/06/29
GAMIT and GLOBK to be installed into /usr/local/gg/10.6/updates/Source
If you need help with command line... (1 Reply)
Hello Team,
I have to verify the Client server certificate validation in HTTPS request(SSL hand shake before the actual HTTPS post request), And tried various ways and failed to verify it successfully.
here are the trials and errors,
resp = requests.post(url, req, verify=True, timeout=5,... (0 Replies)
Experts,
Need your help for this. Please support
My motive is to create seperate output file for each Input Files(File 1 and File2) in another folder say(/tmp/finaloutput)
Input files
File 1(1.1.1.1.csv)
a,b,c
43,17104773,3
45,17104234,4
File 2(2.2.2.2.csv)
a,b,c
43,17104773,1... (2 Replies)