10 lines
298 B
C
10 lines
298 B
C
/* This header defines a helper function to swap void pointers (aka, generic objects). */
|
|
#ifndef SWAP_VOID_H
|
|
#define SWAP_VOID_H
|
|
#include <string.h>
|
|
|
|
/* This function is used to swap void* objects. */
|
|
extern inline void swap_void_ptr(void *first, void *second, size_t size);
|
|
|
|
#endif //SWAP_VOID_H
|