MANPAGES
Skip Quicknav
Index
About Manpages
FAQ
Service Information
/
wheezy
/
libowfat-dev
/ fmt_strn(3)
links
permalink
package tracker
raw man page
table of contents
NAME
SYNTAX
DESCRIPTION
SEE ALSO
other versions
wheezy
0.28-6
jessie
0.29-4
testing
0.30-2
unstable
0.30-2
Scroll to navigation
fmt_strn(3)
Library Functions Manual
fmt_strn(3)
NAME
¶
fmt_strn - write an ASCII string
SYNTAX
¶
#include <fmt.h>
size_t
fmt_strn
(char *
dest
,const char *
source
,
size_t
maxlen
);
DESCRIPTION
¶
fmt_str copies at most
maxlen
leading nonzero bytes from
source
to
dest
and returns the number of bytes it copied.
fmt_str does not append \0.
If
dest
equals FMT_LEN (i.e. is zero), fmt_strn returns the number of bytes it would have written.
SEE ALSO
¶
strncpy(3)