Skip to content

Instantly share code, notes, and snippets.

@Bloofer
Created May 28, 2021 13:59
Show Gist options
  • Select an option

  • Save Bloofer/fa44317198340ea8a9c2d88647f6258e to your computer and use it in GitHub Desktop.

Select an option

Save Bloofer/fa44317198340ea8a9c2d88647f6258e to your computer and use it in GitHub Desktop.
snprintf
#include <stdio.h>
void main(int argc, char **argv)
{
char buf[100];
snprintf(buf, sizeof buf, argv[1]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment