removed strchrnul for compatibility