*** 3000textui.c 2025-01-13 00:18:13.828415300 -0500 --- 3000textui-q4.c 2025-01-22 08:11:01.155542314 -0500 *************** *** 30,35 **** --- 30,38 ---- int main() { + char *ip = (getenv("IP")==NULL?"8.8.8.8":getenv("IP")); + char buffer[32] = "Ping "; + options[0] = strcat(buffer, ip); printf("Press any key to continue...\n"); getchar(); *************** *** 96,102 **** if (0 == selected) { #ifdef __linux__ ! ping("8.8.8.8"); #else printf("Ping not supported for now.\n"); #endif --- 99,105 ---- if (0 == selected) { #ifdef __linux__ ! ping(ip); #else printf("Ping not supported for now.\n"); #endif