Use "strchr()" rather than "index()" - the ANSI C standard specifies