Skip to content

Instantly share code, notes, and snippets.

@hnts
Last active September 27, 2020 05:11
Show Gist options
  • Save hnts/97351d32c0792f773e9b1fa66fe36a95 to your computer and use it in GitHub Desktop.
Save hnts/97351d32c0792f773e9b1fa66fe36a95 to your computer and use it in GitHub Desktop.
// http://inaz2.hatenablog.com/entry/2014/07/04/001851
#include <stdio.h>
int main()
{
char buf[100];
setlinebuf(stdout);
printf("buf = %p\n", buf);
gets(buf);
puts(buf);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment