4 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
1st) how can i print only directories?
2nd) how can i print files that someone used in the last X days (for example, 5).
thanks very much, i need it for homework and teacher teachs us nothing:( (1 Reply)
Discussion started by: SupErioR
1 Replies
2. Post Here to Contact Site Administrators and Moderators
I'm not so sure that this thread should have been closed. Though it was clearly homework the student was asking a specific question related to the assignment, but not the answer to the whole assignment.
/www.unix.com/unix-dummies-questions-answers/107494-how-get-rid.html .
IMHO The solution is... (1 Reply)
Discussion started by: methyl
1 Replies
3. Post Here to Contact Site Administrators and Moderators
Dear Administrators,
I think Mr. Vino is one of your Moderators here because he closes this thread: https://www.unix.com/showthread.php?p=302086230#post302086230
without a valid reason.
Rule 7 states no headhunters or recruiters, but career advice is not prohibited here i think, because it... (2 Replies)
Discussion started by: patras
2 Replies
4. Shell Programming and Scripting
I have these questions for my unix class that I can't figure out because I missed a couple of days. They are for a quiz we took last week so by answering the questions you are not bettering my grade or doing my homework. I just want to understand was the answers. My teacher is really bad at... (1 Reply)
Discussion started by: djeung
1 Replies
LEARN ABOUT CENTOS
fcloseall
FCLOSEALL(3) Linux Programmer's Manual FCLOSEALL(3)
NAME
fcloseall - close all open streams
SYNOPSIS
#define _GNU_SOURCE /* See feature_test_macros(7) */
#include <stdio.h>
int fcloseall(void);
DESCRIPTION
The fcloseall() function closes all of the calling process's open streams. Buffered output for each stream is written before it is closed
(as for fflush(3)); buffered input is discarded.
The standard streams, stdin, stdout, and stderr are also closed.
RETURN VALUE
This function returns 0 if all files were successfully closed; on error, EOF is returned.
ATTRIBUTES
Multithreading (see pthreads(7))
The fcloseall() function does not lock the streams, so it is not thread-safe.
CONFORMING TO
This function is a GNU extension.
SEE ALSO
close(2), fclose(3), fflush(3), fopen(3), setbuf(3)
COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU
2013-06-21 FCLOSEALL(3)