add m_strchrnul that does what GNU strchrnul does: search for 'c' or