Instantly share code, notes, and snippets.

@hhc0null /code.c Secret
Last active Aug 30, 2015

Embed
What would you like to do?
そーすこーどだよ♥
#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