home *** CD-ROM | disk | FTP | other *** search
- /* 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 ) );
- }