mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Move f_vsprintf() below f_sprintf()
Variable argument versions grouped with standard versions
This commit is contained in:
parent
3c8cd13bf1
commit
e4f08d49c1
1 changed files with 10 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue