The 0.5 release happened on 2/15, not on 2/14. :-)
[python/dscho.git] / Mac / Compat / getbootvol.c
blob8f5d28c0b302c69ea2916ce11fc8c3824f3542fc
1 /* Return the name of the boot volume (not the current directory).
2 Public domain by Guido van Rossum, CWI, Amsterdam (July 1987).
3 */
5 #include "macdefs.h"
7 char *
8 getbootvol()
10 short vrefnum;
11 static unsigned char name[32];
13 (void) GetVol(name, &vrefnum);
14 p2cstr(name);
15 /* Shouldn't fail; return ":" if it does */
16 strcat((char *)name, ":");
17 return (char *)name;