🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2617

fopen errors

#2617
From: Eric
Date: Thu, 18 Apr 1996 12:37
22 lines
1184 bytes
I am having difficulties with the "fopen" function in MSVC 1.5?.  I have 
used the following code to write a program to open a file and use the 
fseek function to place the file marker, and "fputs" data into the file. 
When I run this program against files on a OS/2 HPFS file system it runs 
correctly.  When I run this program against files on a OS/2 HPFS file 
system larger than 200MEG it will not open the file and returns NULL.
Are there some limitations to file sizes on DOS or OS/2 machines 
(Memory, or other).  Thanks in advance...

Eric

CODE:

 /* Open a file handle. */

   if( (stream  = fopen( argv[1], "rb+" )) == NULL )
      printf( "The file %s was not opened.\n", argv[1] );

         
   x = atoi(argv[2]);
   
   result = fseek( stream, x, SEEK_CUR);
Technical Details
Message-ID: <4l5d1d$222@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: Eric <efernald@homebase.com>
Newsgroups: comp.lang.c.moderated
Subject: fopen errors
Date: 18 Apr 1996 07:37:01 -0500
Organization: ATMnet, LLC San Diego, CA
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4l5d1d$222@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com
X-Mailer: Mozilla 2.0 (Win95; I)