Pointer to strings

Write a function xStrChr () which scans a string in search of a character. If the character is found it should return a pointer to the first occurrence of the given character. If the given character is not found, the function should return NULL.

Kindly provide C code for this ASAP.