// Helper functions for ar100 // // Copyright (C) 2020-2021 Elias Bakken // // This file may be distributed under the terms of the GNU GPLv3 license. #include "util.h" void *memcpy(void *restrict dest, const void *restrict src, size_t n){ // Typecast src and dest addresses to (char *) char *csrc = (char *)src; char *cdest = (char *)dest; // Copy contents of src[] to dest[] for (int i=0; i