strnlen

fnsize_t strnlen(scope const char * str, size_t maxlen) extern(C) nothrow @nogc pure;

Find length of string up to maxlen