This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fopen() with open() and fdopen()


Hello,

Can we mimic the behavior of fopen() with open() and fdopen(). What 
consequences will arise?

What about fclose(), can we just fflush() and close() instead of calling 
fclose(). I guess, open/fdopen() will work, but I have doubts that using 
fflush() and close() will leak memory in stdio. What do you think?

-- 
Muzaffer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]