http://stackoverflow.com/questions/8994955/warning-implicit-declaration-of-function-is-invalid-in-c99-please-help