mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-31 22:22:34 +03:00
axhttpd now works on win32
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@61 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
@@ -64,6 +64,32 @@ static void usage(void)
|
||||
exit(1);
|
||||
}
|
||||
|
||||
#ifdef WIN32
|
||||
static char * getpass(const char *prompt)
|
||||
{
|
||||
static char buf[127];
|
||||
FILE *fp = stdin;
|
||||
|
||||
printf(prompt); TTY_FLUSH();
|
||||
#if 0
|
||||
fp = fopen("/dev/tty", "w");
|
||||
if (fp == NULL)
|
||||
{
|
||||
printf("null\n"); TTY_FLUSH();
|
||||
fp = stdin;
|
||||
}
|
||||
#endif
|
||||
|
||||
fgets(buf, sizeof(buf), fp);
|
||||
while (buf[strlen(buf)-1] < ' ')
|
||||
buf[strlen(buf)-1] = '\0';
|
||||
|
||||
//if (fp != stdin)
|
||||
// fclose(fp);
|
||||
return buf;
|
||||
}
|
||||
#endif
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
char* pw;
|
||||
|
Reference in New Issue
Block a user