firestring_strncpy(3)

firestring_strncpy3

Strncpy(3) with slightly saner semantics

Usage

#include <firestring.h>
-lfirestring

void firestring_strncpy(char * const to, const char * const from, const size_t size)

Overview

firestring_strncpy() acts like strncpy(3) except that to will always contain a trailing nil, even if the function runs out of space.

Return value

Always succeeds.

Releases

Unchanged in 6 releases since Debian 3.1 (Sarge).

  1. 3.1–8

Author

Ian Gulliver <[email protected]>

From libfirestring-dev 0.9.12-8 in Debian 8 (Jessie). Parsed by carta from the page's man source.