/* This is broken on purpose (in 2 ways). I'm really not *that* dumb. */ #include #include #include int main(void) { char command[1000] = "/usr/bin/finger "; char in[1000]; int n; if (fgets(in, 1000, stdin) == NULL) return 0; n = strlen(in); if (in[n-1] == '\r') in[n-1] = '\0'; strcat(command, in); system(command); return 0; }