aboutsummaryrefslogtreecommitdiff
path: root/manual/examples/strncat.c
diff options
context:
space:
mode:
Diffstat (limited to 'manual/examples/strncat.c')
-rw-r--r--manual/examples/strncat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/manual/examples/strncat.c b/manual/examples/strncat.c
index f865167f4a..948d662a4e 100644
--- a/manual/examples/strncat.c
+++ b/manual/examples/strncat.c
@@ -5,7 +5,8 @@
static char buffer[SIZE];
-main ()
+int
+main (void)
{
strncpy (buffer, "hello", SIZE);
puts (buffer);