Move f_vsprintf() below f_sprintf()
Variable argument versions grouped with standard versions
This commit is contained in:
parent
d869ee600b
commit
7873161767
@ -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…
x
Reference in New Issue
Block a user