Mercurial > cpython-lru_cache-weakref
view Mac/Compat/getbootvol.c @ 5817:48b94de85bf3 legacy-trunk
Extensive changes by AMK.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 17 Jul 1997 16:29:42 +0000 |
| parents | fa8bbd09f2e6 |
| children | db963a615bc9 |
line wrap: on
line source
/* Return the name of the boot volume (not the current directory). Public domain by Guido van Rossum, CWI, Amsterdam (July 1987). */ #include "macdefs.h" char * getbootvol() { short vrefnum; static unsigned char name[32]; (void) GetVol(name, &vrefnum); p2cstr(name); /* Shouldn't fail; return ":" if it does */ strcat((char *)name, ":"); return (char *)name; }
