Buckets:
arudradey/fullhtml-storage / emsdk /upstream /emscripten /system /lib /llvm-libc /src /string /strxfrm.cpp
| //===-- Implementation of strxfrm -----------------------------------------===// | |
| // | |
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | |
| // See https://llvm.org/LICENSE.txt for license information. | |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |
| // | |
| //===----------------------------------------------------------------------===// | |
| namespace LIBC_NAMESPACE_DECL { | |
| // TODO: Add support for locales. | |
| LLVM_LIBC_FUNCTION(size_t, strxfrm, | |
| (char *__restrict dest, const char *__restrict src, | |
| size_t n)) { | |
| size_t len = internal::string_length(src); | |
| if (n > len) | |
| inline_memcpy(dest, src, len + 1); | |
| return len; | |
| } | |
| } // namespace LIBC_NAMESPACE_DECL | |
Xet Storage Details
- Size:
- 925 Bytes
- Xet hash:
- 76960a240da371c1390680f38332f03316e823dc12e3613dff265c0d0e051f41
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.