Skip to content

Instantly share code, notes, and snippets.

@schifano
Created January 20, 2014 22:09
Show Gist options
  • Save schifano/8530231 to your computer and use it in GitHub Desktop.
Save schifano/8530231 to your computer and use it in GitHub Desktop.
C - Prints substring using printf.
int n = 3;
printf("(%.*s)\n", n, filepath);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment