summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/stdc3
-rw-r--r--share/man/man1/stdc.12
2 files changed, 3 insertions, 2 deletions
diff --git a/bin/stdc b/bin/stdc
index 29d317a..5de51d0 100755
--- a/bin/stdc
+++ b/bin/stdc
@@ -18,7 +18,8 @@ grep_proto()
{
pcre2grep -M "(?s)\b$1 *\([[:alnum:]*,._\s\(\)-]*\);$" \
| sed 's/^ *//' \
- | sed -z 's/\([^;]\)\n/\1 /g';
+ | sed -z 's/\([^;]\)\n/\1 /g' \
+ | sed 's/* /*/g';
}
libc_summ_c89()
diff --git a/share/man/man1/stdc.1 b/share/man/man1/stdc.1
index b9b9a64..dd9d006 100644
--- a/share/man/man1/stdc.1
+++ b/share/man/man1/stdc.1
@@ -54,7 +54,7 @@ An error occured.
.SH Examples
.EX
.RB "$ " "stdc c11 \[aq]mem[[:alpha:]]*\[aq]"
-void *memcpy(void * restrict s1, const void * restrict s2, size_t n);
+void *memcpy(void *restrict s1, const void *restrict s2, size_t n);
void *memmove(void *s1, const void *s2, size_t n);
int memcmp(const void *s1, const void *s2, size_t n);
void *memchr(const void *s, int c, size_t n);