aboutsummaryrefslogtreecommitdiffstats
path: root/man3/mempcpy.3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2007-04-05 14:17:54 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2007-04-05 14:17:54 +0000
commit41798314b69f4ea3af7173f0f3a02b8cb5d9b33d (patch)
treef7e53d4f7141aecd8c58ef1308416d2562cb62bf /man3/mempcpy.3
parent9ee19dd5562590464bb2322378018422ff070dcf (diff)
downloadman-pages-41798314b69f4ea3af7173f0f3a02b8cb5d9b33d.tar.gz
Code formatting fixes
Diffstat (limited to 'man3/mempcpy.3')
-rw-r--r--man3/mempcpy.33
1 files changed, 2 insertions, 1 deletions
diff --git a/man3/mempcpy.3 b/man3/mempcpy.3
index 4e389a826b..465fe11f69 100644
--- a/man3/mempcpy.3
+++ b/man3/mempcpy.3
@@ -50,7 +50,8 @@ wide characters.
.SH "EXAMPLE"
.nf
void *
-combine (void *o1, size_t s1, void *o2, size_t s2) {
+combine(void *o1, size_t s1, void *o2, size_t s2)
+{
void *result = malloc(s1 + s2);
if (result != NULL)
mempcpy(mempcpy(result, o1, s1), o2, s2);