How to identify if a function is external?

Hi,
can anyone suggest me the best way to identify when I encounter an instruction if the called function is an external one like “atol” or “atoi” or if it was declared inside the project I have compiled?

Thanks