{ }
};
struct session *session;
+ char *tweet;
int retval;
int option;
session->password = get_string_from_stdin();
}
- session->tweet = get_string_from_stdin();
+ /* Add the "$ " to the start of the tweet to show it's coming from
+ * a shell */
+ tweet = get_string_from_stdin();
+ session->tweet = zalloc(strlen(tweet) + 10);
+ sprintf(session->tweet, "$ %s", tweet);
+ free(tweet);
if (strlen(session->tweet) == 0) {
dbg("no tweet?\n");
fprintf(stderr, "tweet failed\n");
return -1;
}
+ //printf("tweet = %s\n", session->tweet);
session_free(session);
exit: