Skip to content

Instantly share code, notes, and snippets.

@CrazyPython
Created October 23, 2016 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CrazyPython/152805717b1c01649f0efed3415001e0 to your computer and use it in GitHub Desktop.
Save CrazyPython/152805717b1c01649f0efed3415001e0 to your computer and use it in GitHub Desktop.

Output on my machine:

~/foo $ ./a.out bar

Current working directory was: /foo
Changing directory...
Current working directory is now: /foo

buf escapes local scope. May cause memory leak.

Very large code, macros could be reduced.

Suggestion: post to code review.se.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment