09-15-2005
fflush(out);
Well, if it should not matter, I will keep the parenthesis there for now beause the problem is not always presented.
I will add fflush(out); betweeen these two lines and see if the problem come back again.
Thank you so much for the help!
10 More Discussions You Might Find Interesting
1. Programming
--- (6 Replies)
Discussion started by: runawayNinja
6 Replies
2. Programming
Hi all,
Can anyone tell me a little about the datatype FILE, which represents stream. What does its structure look like, and in which header file is it defined and so on...
Ex :
FILE *fp ;
fp = fopen("filename", "w") ; (6 Replies)
Discussion started by: milhan
6 Replies
3. Programming
I am writing some code to do analysis on the file system (HP-UX 11.11).
I am using stat(..) to get file information. My problem is that the file-size may exceed the data types defined in 'sys/stat.h' & 'sys/types.h' respectively.
Thus file-sizes in the Giga-byte range are not read correctly.... (2 Replies)
Discussion started by: ALTRUNVRSOFLN
2 Replies
4. AIX
Hello,
I get this message : "Value too large to be stored in data type" when I try to open a 3Gb file.
Can someone helps me to resolve the problem.
Thank you very much (5 Replies)
Discussion started by: limame
5 Replies
5. Shell Programming and Scripting
I am using perl 5.8.0.
I need to check some values to see it they are floats. Our system does not have Data::Types so I can't use is_float. Is there something else that I can use? The only thing in Data is Dump.pm. I am not allowed to download anything to our system so I have to use what I have.... (3 Replies)
Discussion started by: ajgwin
3 Replies
6. Web Development
Hi everybody,
I`m very new with PHP and Databases and I having the follow issue with prices data..
The original information is in CSV files.
The prices have formatted with commas and dots as follow:
12,300.99 -->(thousands separated by commas)
3,500.25 -->(thousands separated... (10 Replies)
Discussion started by: cgkmal
10 Replies
7. Programming
i'm using a C program and running it on a linux server, i got 2 adressess of 2 variables, and 2 addresses of 2 chars, and compared it. and got the size of a int and the size of a char.
why is a size of a int (4 bytes) bigger then the size of a char (1 byte)?
also if i do &a-&b i get 1, but if i... (30 Replies)
Discussion started by: omega666
30 Replies
8. UNIX for Advanced & Expert Users
I've been using various versions of UNIX and Linux since 1993, and I've never run across one that showed your password as you type it in when you log in, or one that stored passwords in plain text rather than encrypted. I'm writing a script for work for a security audit, and two of the... (5 Replies)
Discussion started by: Anne Neville
5 Replies
9. AIX
root@test8:/config1>oslevel -s
5300-01-00-0000
root@test8:/config1>oslevel -r
5300-01
while moving a file sized 9GB i got this message
root@test8:/configapp>mv bkp_14JUN16_oraapp_2.tgz /oraapp
bkp_14JUN16_oraapp_2.tgz: Value too large to be stored in data type.
possibly need APAR... (2 Replies)
Discussion started by: filosophizer
2 Replies
10. Programming
This is from a program I wrote over in 1998 that I am trying to compile on a linux machine:
void write_line (FILE *fp, int rec_no, line_rec *arec)
{
fpos_t woffset;
woffset = (rec_no - 1) * sizeof(line_rec);
fsetpos(fp,&woffset);
fwrite(arec,sizeof(line_rec),1,fp);
}On the line... (2 Replies)
Discussion started by: wbport
2 Replies
LEARN ABOUT MOJAVE
fflush
FFLUSH(3) BSD Library Functions Manual FFLUSH(3)
NAME
fflush, fpurge -- flush a stream
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <stdio.h>
int
fflush(FILE *stream);
int
fpurge(FILE *stream);
DESCRIPTION
The function fflush() forces a write of all buffered data for the given output or update stream via the stream's underlying write function.
The open status of the stream is unaffected.
If the stream argument is NULL, fflush() flushes all open output streams.
The function fpurge() erases any input or output buffered in the given stream. For output streams this discards any unwritten output. For
input streams this discards any input read from the underlying object but not yet obtained via getc(3); this includes any text pushed back
via ungetc(3).
RETURN VALUES
Upon successful completion 0 is returned. Otherwise, EOF is returned and the global variable errno is set to indicate the error.
ERRORS
[EBADF] The stream argument is not an open stream, or, in the case of fflush(), not a stream open for writing.
The function fflush() may also fail and set errno for any of the errors specified for the routine write(2).
SEE ALSO
write(2), fclose(3), fopen(3), setbuf(3)
STANDARDS
The fflush() function conforms to ISO/IEC 9899:1990 (``ISO C90'').
BSD
June 4, 1993 BSD