All pastes #967379 Raw Edit

Someone

public cpp v1 · immutable
·published 2008-04-02 11:21 UTC
rendered paste body
#include <windows.h>#include <stdio.h>int main(void){	char windir[MAX_PATH] = "", rootdrive[5] = "";	GetWindowsDirectory(windir, MAX_PATH - 1);	strncpy(rootdrive, windir, 3);	printf("%s\n", rootdrive);	getchar();	return 0;}