[−][src]Function qt_core::qstrncpy
pub unsafe fn qstrncpy(
dst: *mut c_char,
src: *const c_char,
len: c_uint
) -> *mut c_char
A safe strncpy()
function.
Calls C++ function: char* qstrncpy(char* dst, const char* src, unsigned int len)
.
A safe strncpy()
function.
Copies at most len bytes from src (stopping at len or the terminating '\0' whichever comes first) into dst and returns a pointer to dst. Guarantees that dst is '\0'-terminated. If src or dst is 0, returns 0 immediately.
This function assumes that dst is at least len characters long.
Note: When compiling with Visual C++ compiler version 14.00 (Visual C++ 2005) or later, internally the function strncpy_s will be used.
See also qstrcpy().