Added strchr_r()
Corrected strchar_r() pointer casts