[][src]Function qt_core::qstrcpy

pub unsafe fn qstrcpy(
    dst: impl CastInto<MutPtr<c_char>>,
    src: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_char>

Copies all the characters up to and including the '\0' from src into dst and returns a pointer to dst. If src is 0, it immediately returns 0.

Calls C++ function: char* qstrcpy(char* dst, const char* src).

C++ documentation:

Copies all the characters up to and including the '\0' from src into dst and returns a pointer to dst. If src is 0, it immediately returns 0.

This function assumes that dst is large enough to hold the contents of src.

See also qstrncpy().