Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: ee01a5e5199e2fb13496facec18c3de0db35fe8a authored by cvs2svn on 13 July 2001, 15:10:55 UTC
This commit was manufactured by cvs2svn to create tag 'r211c1'.
Tip revision: ee01a5e
getbootvol.c
/* 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(void)
{
	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;
}
back to top