1fmt_strn(3) Library Functions Manual fmt_strn(3)
23
4
NAME
6fmt_strn - write an ASCII string
7
SYNTAX
9#include <fmt.h>
1011
size_t fmt_strn(char *dest,const char *source,
12size_t maxlen);
13
DESCRIPTION
15fmt_str copies at most maxlen leading nonzero bytes from source to dest
16and returns the number of bytes it copied.
1718
fmt_str does not append \0.
1920
If dest equals FMT_LEN (i.e. is zero), fmt_strn returns the number of
21bytes it would have written.
22
SEE ALSO
24strncpy(3)
2526
27
28
fmt_strn(3)