003 File Manager
Current Path:
/usr/src/contrib/ldns/compat
usr
/
src
/
contrib
/
ldns
/
compat
/
📁
..
📄
b64_ntop.c
(7.25 KB)
📄
b64_pton.c
(8.47 KB)
📄
calloc.c
(415 B)
📄
ctime_r.c
(262 B)
📄
fake-rfc2553.c
(6.07 KB)
📄
fake-rfc2553.h
(5.26 KB)
📄
gmtime_r.c
(231 B)
📄
inet_aton.c
(5.33 KB)
📄
inet_ntop.c
(5.48 KB)
📄
inet_pton.c
(5.15 KB)
📄
isascii.c
(225 B)
📄
isblank.c
(255 B)
📄
localtime_r.c
(237 B)
📄
malloc.c
(397 B)
📄
memmove.c
(953 B)
📄
realloc.c
(567 B)
📄
snprintf.c
(28.66 KB)
📄
strlcpy.c
(1.63 KB)
📄
timegm.c
(414 B)
Editing: memmove.c
/* * memmove.c: memmove compat implementation. * * Copyright (c) 2001-2008, NLnet Labs. All rights reserved. * * See LICENSE for the license. */ #include <ldns/config.h> #include <stdlib.h> void *memmove(void *dest, const void *src, size_t n); void *memmove(void *dest, const void *src, size_t n) { uint8_t* from = (uint8_t*) src; uint8_t* to = (uint8_t*) dest; if (from == to || n == 0) return dest; if (to > from && to-from < (int)n) { /* to overlaps with from */ /* <from......> */ /* <to........> */ /* copy in reverse, to avoid overwriting from */ int i; for(i=n-1; i>=0; i--) to[i] = from[i]; return dest; } if (from > to && from-to < (int)n) { /* to overlaps with from */ /* <from......> */ /* <to........> */ /* copy forwards, to avoid overwriting from */ size_t i; for(i=0; i<n; i++) to[i] = from[i]; return dest; } memcpy(dest, src, n); return dest; }
Upload File
Create Folder