source:
orxonox.OLD/branches/preferences/src/lib/argp/mempcpy.c
@
6403
Last change on this file since 6403 was 6393, checked in by rennerc, 19 years ago | |
---|---|
File size: 269 bytes |
Rev | Line | |
---|---|---|
[6393] | 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 |
Note: See TracBrowser
for help on using the repository browser.