bson_strncpy man page
bson_strncpy — bson_strncpy()
void bson_strncpy (char *dst, const char *src, size_t size);
dst: The destination buffer.
src: The src buffer.
size: The number of bytes to copy into dst, which must be at least that size.
Copies up to size bytes from src into dst. dst must be at least size bytes in size. A trailing \0 will be set.
2017, MongoDB, Inc