Staging
v0.5.1
https://github.com/python/cpython
Revision 9971f689cbce2c7ce3241aed4af0f8455836fbea authored by Guido van Rossum on 06 October 1997, 21:09:32 UTC, committed by Guido van Rossum on 06 October 1997, 21:09:32 UTC
Print the author with the revision date and filename.
1 parent dc1a072
Raw File
Tip revision: 9971f689cbce2c7ce3241aed4af0f8455836fbea authored by Guido van Rossum on 06 October 1997, 21:09:32 UTC
Fix comment to add the all-important trailing colon to the example.
Tip revision: 9971f68
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()
{
	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