devxlogo

strchr

strchr

Question:
Where can I see the source code to the functionstrchr?

Answer:
If you purchase a compiler such as the professional edition of VC++, the source code for all run-time library functions is included.

However, this routine is rather trivial. You could implement it like this:

char *mystrchar(char *string, int c){   char *p;   for (p = string; *p != ‘

devx-admin

Share the Post: