bson_strncpy man page

bson_strncpy() — Copies up to size bytes from src into dst. dst must be at least size bytes in size. A trailing will be set.

Synopsis

void
bson_strncpy (char       *dst,
              const char *src,
              size_t      size);

Parameters

dst
The destination buffer.
src
The src buffer.
size
The number of bytes to copy into dst, which must be at least that size.

Description

Copies up to size bytes from src into dst dst must be at least size bytes in size. A trailing will be set.

Colophon

This page is part of libbson. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.

Info

2016‐09‐02 libbson