Category : Files from Magazines
Archive   : VOL11N12.ZIP
Filename : FILESPEC.I

 
Output of file : FILESPEC.I contained in archive : VOL11N12.ZIP

/*
* All output pointers to char arrays that are to be "filled in"
* must have their memory allocated per the #defines herein.
*/

#define exist(sz) (!access(sz, 00)) /* #include */

/* input output */
#define FILESPEC 64 /* "d:\\path\\filename.ext" same */
#define FILESPEC_DRIVE 3 /* "d:", "d" or "" "d:" or "" */
#define FILESPEC_PATH 63 /* "\\path\\", ..., "\\" or "" same */
#define FILESPEC_NAME 9 /* "filename" same */
#define FILESPEC_EXT 5 /* ".ext", "ext" or "" ".ext" or "" */

struct CHKDSK { /* Do NOT change the order of structure elements! */
unsigned int uiSectorsPerCluster; /* A */
unsigned int uiAvailableClusters; /* B */
unsigned int uiBytesPerSector; /* C */
unsigned int uiTotalClusters; /* D */
long lTotalDiskSpace; /* C * A * D */
long lAvailableOnDisk; /* C * A * B */
unsigned int uiBytesPerCluster; /* C * A */
unsigned int uiPercentFreeSpace; /* (B * 100) / D and rounded */
};

extern char *MakeFilespec(char *, char *, char *, char *, char *);
extern void ParseFilespec(char *, char *, char *, char *, char *);

extern void chdrv(char *);
extern struct CHKDSK chkdsk(char *);
extern void verify(int);
extern int IsPrnOn(void); /* M model only */



  3 Responses to “Category : Files from Magazines
Archive   : VOL11N12.ZIP
Filename : FILESPEC.I

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/