declare index/rindex returns for ANSI C