[][src]Function qt_core::qstrdup

pub unsafe fn qstrdup(arg1: *const c_char) -> *mut c_char

Returns a duplicate string.

Calls C++ function: char* qstrdup(const char* arg1).

C++ documentation:

Returns a duplicate string.

Allocates space for a copy of src, copies it, and returns a pointer to the copy. If src is 0, it immediately returns 0.

Ownership is passed to the caller, so the returned string must be deleted using delete[].