Split clang header

This commit is contained in:
Reece Wilson 2020-09-12 03:36:42 +01:00
parent 1d420b6034
commit 0b9cfa556e
2 changed files with 14 additions and 12 deletions

View File

@ -1,15 +1,4 @@
#pragma once
#include "ClangBsearch.hpp"
static int memcpy_s(void * dest, size_t destsz,
const void * src, size_t count)
{
size_t minVal = std::min(destsz, count);
if (count > destsz)
{
return 1;
}
std::memcpy(dest, src, minVal);
return 0;
}
#include "ClangMemCpy_s.hpp"

View File

@ -0,0 +1,13 @@
#pragma once
static int memcpy_s(void * dest, size_t destsz,
const void * src, size_t count)
{
size_t minVal = std::min(destsz, count);
if (count > destsz)
{
return 1;
}
std::memcpy(dest, src, minVal);
return 0;
}