well i corrected the code as u said but now it says ambiguity between the function and the way im calling it
Code:
#include <string.h>
#include <stdio.h>
#include <conio.h>
 char *(strchr)(const char *s, char c)
 {
     while (*s != '\0' && *s != (char)c)
         s++;
     return ( (*s == c) ? (char *) s : NULL );
 }
 main()
 {
 char s[5],c;
 scanf("%s",&s);
 strchr(s,c);
 printf("%s",s);
 getch();
 }