Skip to content

Instantly share code, notes, and snippets.

@schacon
Created March 19, 2010 00:43
Show Gist options
  • Save schacon/337101 to your computer and use it in GitHub Desktop.
Save schacon/337101 to your computer and use it in GitHub Desktop.
static void init_http_user_name()
{
error("1");
struct strbuf name = STRBUF_INIT;
error("2");
fprintf(stdout, "Username: ");
error("3");
fflush(stdout);
error("4");
strbuf_getline(&name, stdin, '\n');
error("5");
user_pass = strbuf_detach(&name, NULL);
error("6");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment