[][src]Function qt_core::qstrnlen

pub unsafe fn qstrnlen(
    str: impl CastInto<Ptr<c_char>>,
    maxlen: c_uint
) -> c_uint

A safe strnlen() function.

Calls C++ function: unsigned int qstrnlen(const char* str, unsigned int maxlen).

C++ documentation:

A safe strnlen() function.

Returns the number of characters that precede the terminating '\0', but at most maxlen. If str is 0, returns 0.

This function was introduced in Qt 4.2.

See also qstrlen().