#include <stdio.h>
#include <unistd.h>

int main()
{
    char id[20];
    char *passwd;

    rintf("id : ");
    fgets(id, sizeof(id), stdin);

    id[strlen(id)-1] = '\0';

    passwd = getpass("passwd : ");

    printf("you input is id = (%s), passwd =(%s)\n",id, passwd);

    return 0;
}