static int read_password(char *buf, int buf_size)

{

    int c, i;

    printf("Password: ");

    fflush(stdout);

    i = 0;

    for(;;) {

        c = getchar();

        if (c == '\n')

            break;

        if (i < (buf_size - 1))

            buf[i++] = c;

    }

    buf[i] = '\0';

    return 0;

}

static int read_password(char *buf, int buf_size)

{

    int c, i;

    printf("Password: ");

    fflush(stdout);

    i = 0;

    for(;;) {

        c = getchar();

        if (c == '\n')

            break;

        if (i < (buf_size - 1))

            buf[i++] = c;

    }

    buf[i] = '\0';

    return 0;

}

        if (c == '\n')         if (i < (buf_size - 1))
static int FUNC_0(char *VAR_0, int VAR_1)

{

    int VAR_2, VAR_3;

    printf("Password: ");

    fflush(stdout);

    VAR_3 = 0;

    for(;;) {

        VAR_2 = getchar();

        if (VAR_2 == '\n')

            break;

        if (VAR_3 < (VAR_1 - 1))

            VAR_0[VAR_3++] = VAR_2;

    }

    VAR_0[VAR_3] = '\0';

    return 0;

}

static int FUNC_0(char *VAR_0, int VAR_1)
{ int VAR_2, VAR_3; printf("Password: "); fflush(stdout); VAR_3 = 0; for(;;) { VAR_2 = getchar(); if (VAR_2 == '\n')
break; if (VAR_3 < (VAR_1 - 1))
VAR_0[VAR_3++] = VAR_2; } VAR_0[VAR_3] = '\0'; return 0; }