removing further CRT dependencies:  strlen