Skip to content

Instantly share code, notes, and snippets.

@zodiac1111
Last active January 3, 2016 10:19
Show Gist options
  • Save zodiac1111/2457b3d4f2057cf6b15e to your computer and use it in GitHub Desktop.
Save zodiac1111/2457b3d4f2057cf6b15e to your computer and use it in GitHub Desktop.
知道长度打印字符串(不是以\0结尾的),如httpmsg,
printf("%*.s",len,str);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment