Add restrict type-qualifier.
This commit is contained in:
parent
2304e21090
commit
f4a51ad4cf
@ -35,7 +35,7 @@
|
||||
.Sh SYNOPSIS
|
||||
.In monetary.h
|
||||
.Ft ssize_t
|
||||
.Fn strfmon "char *s" "size_t maxsize" "const char *format" "..."
|
||||
.Fn strfmon "char * restrict s" "size_t maxsize" "const char * restrict format" "..."
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Fn strfmon
|
||||
|
@ -88,7 +88,8 @@ static int __calc_left_pad(int, char *);
|
||||
static char *__format_grouped_double(double, int *, int, int, int);
|
||||
|
||||
ssize_t
|
||||
strfmon(char *s, size_t maxsize, const char *format, ...)
|
||||
strfmon(char * __restrict s, size_t maxsize, const char * __restrict format,
|
||||
...)
|
||||
{
|
||||
va_list ap;
|
||||
char *dst; /* output destination pointer */
|
||||
|
Loading…
Reference in New Issue
Block a user