Identifying user define function in llvm

Is there anyway by which I can identify whether the callee function is a user
define or not.
For example:
void foo()
{
   printf("hello world again");
}
int main()
{
   printf("hello world\n");
   foo();
}

As in this case foo() is a user define, whereas printf() is a library
function.