1fmt_strn(3)                Library Functions Manual                fmt_strn(3)
2
3
4

NAME

6       fmt_strn - write an ASCII string
7

SYNTAX

9       #include <fmt.h>
10
11       size_t fmt_strn(char *dest,const char *source,
12                             size_t maxlen);
13

DESCRIPTION

15       fmt_str copies at most maxlen leading nonzero bytes from source to dest
16       and returns the number of bytes it copied.
17
18       fmt_str does not append \0.
19
20       If dest equals FMT_LEN (i.e. is zero), fmt_strn returns the  number  of
21       bytes it would have written.
22

SEE ALSO

24       strncpy(3)
25
26
27
28                                                                   fmt_strn(3)
Impressum