repo.or.cz
/
gsasl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
s/putc_unlocked/putc/g for freebsd on alpha
[gsasl.git]
/
argp
/
mempcpy.c
blob
6fa228b2c9f8443a36a0d6c5b3a891e3ec9c4d93
1
/* strndup.c
2
*
3
*/
4
5
/* Written by Niels Möller <nisse@lysator.liu.se>
6
*
7
* This file is hereby placed in the public domain.
8
*/
9
10
#include <string.h>
11
12
void
*
13
mempcpy
(
void
*
to
,
const void
*
from
,
size_t
size
)
14
{
15
memcpy
(
to
,
from
,
size
);
16
return
(
char
*)
to
+
size
;
17
}
18