// Blog.C/Trivia.LagAndString
// Written by Lee
// CODE WORKS IN UBUNTU
#include<stdio.h>
#include<time.h>
char * string(){
char str[10];
return str;
}
void lag(){
int x = time(0);
while(time(0) == x){}
}
main(){
while(1){
if(string()==string()) printf("HEY!\n");
lag();
}
}
/*
PROGRAM NOTES
1. time.h contains time(int x)
2. returning "str" gives a warning
3. lag() waits for a second before the method finishes
4. what can you say about "string()==string()"
*/