Oddbean new post about | logout
 



#ifndef __COPY_UTIL_H__
#define __COPY_UTIL_H__



#include <stdio.h>
#include "stm32f1xx_hal.h"

void copy_uint8(const uint8_t *src, uint8_t *dest, size_t length);
void copy_uint16(const uint16_t *src, uint16_t *dest, size_t length);
void copy_int32(const int32_t *src, int32_t *dest, size_t length);
void copy_float32(const float32_t *src, float32_t *dest, size_t length);

#endif 
 please explain the code the way you would teach a five year old 😜