Skip to content

Instantly share code, notes, and snippets.

@kevsmith
Created April 15, 2012 14:08
Show Gist options
  • Select an option

  • Save kevsmith/2393039 to your computer and use it in GitHub Desktop.

Select an option

Save kevsmith/2393039 to your computer and use it in GitHub Desktop.
Fun w/a C REPL
g++> #include <unistd.h>
g++> sizeof(pid_t);
g++> #include <stdio.h>
g++> printf("%d\n", sizeof(pid_t));
4
g++> typedef pid_t (*child_fun)(void);
g++> sizeof(child_fun);
g++> printf("%d\n", sizeof(child_fun));
8
g++>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment