Skip to content

Instantly share code, notes, and snippets.

@eklitzke
Created April 11, 2012 01:06
Show Gist options
  • Select an option

  • Save eklitzke/2356065 to your computer and use it in GitHub Desktop.

Select an option

Save eklitzke/2356065 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <unistd.h>
int main(int argc, char **argv) {
char buf[100];
chdir("//");
getcwd(buf, sizeof(buf));
printf("%s\n", buf);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment