Skip to content

Instantly share code, notes, and snippets.

@cpl
Created October 7, 2018 17:51
Show Gist options
  • Save cpl/20eb1a1a2973730ed5ee4a4fbc4b5389 to your computer and use it in GitHub Desktop.
Save cpl/20eb1a1a2973730ed5ee4a4fbc4b5389 to your computer and use it in GitHub Desktop.
shell functions
sizeof() {echo "int main() { printf(\"%d\", sizeof($1)); }" | gcc -xc -w - && ./a.out}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment