Skip to content

Instantly share code, notes, and snippets.

@oneroyalace
Last active March 20, 2019 19:41
Show Gist options
  • Save oneroyalace/7b2c067d32c6615c15dac6e73dea9dd5 to your computer and use it in GitHub Desktop.
Save oneroyalace/7b2c067d32c6615c15dac6e73dea9dd5 to your computer and use it in GitHub Desktop.
ajajroyal
#include <stdio.h>
#include <string.h>
extern char *gets (char *__s);
int main()
{
char password[9];
char buffer[9];
strcpy(password,"security");
do
{
printf("Welcome to the greatest program in the world!\n");
printf("Enter the password to proceed:\n");
gets(buffer);
}
while(strcmp(buffer,password));
printf("Actually, this is just a tribute.\n");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment