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

void greet() {
    char buffer[128];
    memset(buf, 0, sizeof(buffer));
    system("echo Your name: ");
    fgets(buffer, sizeof(buffer), stdin);
    printf(buffer);
    puts("Nice to meet you. Good bye!");
}

int main() {
    setvbuf(stdout, NULL, _IONBF, 0);
    setvbuf(stdin, NULL, _IONBF, 0);

    greet();

    return 0;
}
