Add restrict type-qualifier.

This commit is contained in:
mike 2002-09-20 08:24:01 +00:00
parent 2304e21090
commit f4a51ad4cf
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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 */