bson_strncpy() — libbson 1.6.3

- libbson 1.6.3 »
- API Reference »
- bson_string_t

# bson_strncpy()

## 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 `\0` will be set.

Created using Sphinx 1.5.3, based on Sphinx Readable Theme.