mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-30 08:18:30 +00:00
Add more missing C / C++ headers
This commit is contained in:
parent
b9dc74b672
commit
8dd4ec68d0
152 changed files with 30711 additions and 6267 deletions
|
@ -19,5 +19,7 @@
|
|||
#include "libc/str/str.h"
|
||||
|
||||
wchar_t *wmempcpy(wchar_t *dest, const wchar_t *src, size_t count) {
|
||||
return mempcpy(dest, src, count * sizeof(wchar_t));
|
||||
size_t bytes;
|
||||
if (__builtin_mul_overflow(count, sizeof(wchar_t), &bytes)) bytes = -1;
|
||||
return mempcpy(dest, src, bytes);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue