home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Garbo
/
Garbo.cdr
/
mac
/
unix
/
unxfiles.sit
/
source
/
Mac
/
my_stdio.c
next >
Wrap
Text File
|
1989-11-21
|
374b
|
15 lines
/* for multi-volume file systems; set up for Mac */
#include <string.h>
#include "my_stdio.h"
int invol, outvol;
/* sets Macintosh volume, possibly a WDRefNum, before fopen()ing */
FILE *my_fopen ( char *filename, char *mode ) {
int theVol = ( ( 'r' == *mode ) ? invol : outvol );
if ( SetVol ( nil, theVol ) )
return ( nil );
return ( fopen ( filename, mode ) );
}