This is the part of the program that matters:
char name[16]; // room for 16 letters int is_admin = 0; // sits right after name in memory gets(name); // copies everything you type. never checks the length. if (is_admin != 0) { print_flag(); }