Article View: comp.std.c
Article #4916About BUFFER_FILE
From: Magali Marbot (RMC)
Date: Tue, 19 Mar 1996 17:44
Date: Tue, 19 Mar 1996 17:44
23 lines
1133 bytes
1133 bytes
I have a program with FILE typed files and i'd like to allocate some files of this program in the buffer, so i have to use BUFFER_FILE. It's OK but i don't know how to change two instructions : * if (fread(range[y], sizeof(image_data), x_size, image_file) != x_size) with FILE *image_file; * if (fwrite(range[y], sizeof(image_data), x_dsize,output) != x_dsize) with FILE *output; Thus, what can i do to change my FILE in BUFFER_FILE and have the same result ? Maybe should i play with string of the BUFFER_FILE ? If you can help me or you know where i could get a solution, don't hesitate to email me your answer !!! Thanks a lot, Magali ----- Magali Marbot -------- Email : magali@inmos.co.uk ----------------------------
Technical Details
Message-ID:
<4imrpd$357@milkwort.inmos.co.uk>Path:
arc1-ca.pugleaf.net!bristol.st.com!gordano!magaliShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!bristol.st.com!gordano!magali From: magali@gordano.inmos.co.uk (Magali Marbot (RMC)) Newsgroups: comp.std.c Subject: About BUFFER_FILE Date: 19 Mar 1996 17:44:13 GMT Organization: INMOS Limited, Bristol, UK Sender: magali@gordano (Magali Marbot (RMC)) Distribution: world Message-ID: <4imrpd$357@milkwort.inmos.co.uk> NNTP-Posting-Host: gordano.inmos.co.uk