diff options
author | dteske <dteske@FreeBSD.org> | 2016-01-31 21:31:24 +0000 |
---|---|---|
committer | dteske <dteske@FreeBSD.org> | 2016-01-31 21:31:24 +0000 |
commit | 787316176728e376efcc9bfaee26d2d429e11a14 (patch) | |
tree | 9659063675adbb24ff862b2b63c843bbbbb7da47 /usr.sbin | |
parent | d869ee600b2d80c3f0e212b40018f765aaa17390 (diff) | |
download | FreeBSD-src-787316176728e376efcc9bfaee26d2d429e11a14.zip FreeBSD-src-787316176728e376efcc9bfaee26d2d429e11a14.tar.gz |
Move f_vsprintf() below f_sprintf()
Variable argument versions grouped with standard versions
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bsdconfig/share/strings.subr | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/usr.sbin/bsdconfig/share/strings.subr b/usr.sbin/bsdconfig/share/strings.subr index 4237f42..1e78b75 100644 --- a/usr.sbin/bsdconfig/share/strings.subr +++ b/usr.sbin/bsdconfig/share/strings.subr @@ -159,6 +159,16 @@ f_sprintf() esac } +# f_vsprintf $var_to_set $format $format_args +# +# Similar to vsprintf(3), write a string into $var_to_set using printf(1) +# syntax (`$format $format_args'). +# +f_vsprintf() +{ + eval f_sprintf \"\$1\" \"\$2\" $3 +} + # f_snprintf $var_to_set $size $format [$arguments ...] # # Similar to snprintf(3), write at most $size number of bytes into $var_to_set @@ -209,16 +219,6 @@ f_vsnprintf() eval f_snprintf \"\$1\" \"\$2\" \"\$3\" $4 } -# f_vsprintf $var_to_set $format $format_args -# -# Similar to vsprintf(3), write a string into $var_to_set using printf(1) -# syntax (`$format $format_args'). -# -f_vsprintf() -{ - eval f_sprintf \"\$1\" \"\$2\" $3 -} - # f_longest_line_length # # Simple wrapper to an awk(1) script to print the length of the longest line of |