Skip to content

Instantly share code, notes, and snippets.

@gdemir
Created October 26, 2010 13:26
Show Gist options
  • Save gdemir/646885 to your computer and use it in GitHub Desktop.
Save gdemir/646885 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
void
sleep(char *msg)
{
fprintf(stdout, "%s", msg);
}
void
state(void(* fonk)(char *))
{
(* fonk)("uyuyorum");
}
int
main()
{
state(sleep);
exit(EXIT_SUCCESS);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment