TypeScript API Documentation for GLIB
API Version: 2.0
Library Version: 2.86.4
Generated with TypeDoc via ts-for-gir v4.0.0-beta.40
Like the standard C strncpy() function, but copies a given number of characters instead of a given number of bytes.
strncpy()
The src string must be valid UTF-8 encoded text. (Use GLib.utf8_validate on all text before trying to use UTF-8 utility functions with it.)
src
Note you must ensure dest is at least 4 * n + 1 to fit the largest possible UTF-8 characters
dest
n
buffer to fill with characters from src
UTF-8 encoded string
character count
Like the standard C
strncpy()function, but copies a given number of characters instead of a given number of bytes.The
srcstring must be valid UTF-8 encoded text. (Use GLib.utf8_validate on all text before trying to use UTF-8 utility functions with it.)Note you must ensure
destis at least 4 *n+ 1 to fit the largest possible UTF-8 characters