Skip to content

Instantly share code, notes, and snippets.

@hhc0null

hhc0null/code.c Secret

Last active August 30, 2015 06:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hhc0null/a15c7ed510737957db86 to your computer and use it in GitHub Desktop.
Save hhc0null/a15c7ed510737957db86 to your computer and use it in GitHub Desktop.
そーすこーどだよ♥
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
// I want you to be known globally!
char your_introduction[0x100];
int main()
{
FILE *fp = NULL;
char message[30];
puts("My name is Catherine:)");
puts("About me:");
if((fp = fopen("my_introduction.txt", "r")) == NULL) {
perror("Oops...");
exit(EXIT_FAILURE);
}
fgets(message, 30, fp);
puts(message);
fclose(fp);
puts("Please tell me about you:");
fgets(your_introduction, 0x100, stdin);
puts("Please leave your message:");
fgets(message, 0x30, stdin);
puts("Thank you~ <3");
sleep(30);
puts("(Hint: aHR0cHM6Ly9naXN0LmdpdGh1Yi5jb20vaGhjMG51bGwvYTE1YzdlZDUxMDczNzk1N2RiODY=)");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment