This is the help page from Turbo C/C++ ver. 1:
I'm assuming you either have an early version of Turbo C/C++, or are thinking of getting it.
strchr Finds c in str.
char *strchr(const char *s, int c);
strchr scans a string in the forward direction, looking for a specific
character. strchr finds the first occurrence of the character c in the
The null-terminator is considered to be part of the string, so that, for
returns a pointer to the terminating null character of the string strs.
Returns a pointer to the first occurrence of the character c in s. If c does
not occur in s, strchr returns null.
strchr is available on UNIX systems and is defined in ANSI C.
char *ptr, c = 'r';
strcpy(string, "This is a string");
ptr = strchr(string, c);
printf("The character %c is at position: %d\n", c, ptr-string);
printf("The character was not found\n");
For moving the cursor, you can use the non-standard conio.h include file.