Skip to content

`ay_explicit_memset` function, a version of `memset` that can escape dead code elimination in C compilers. Licensed under 0-clause BSD License (public domain-like license).

License

Notifications You must be signed in to change notification settings

arnavyc/explicit-memset

Repository files navigation

explicit-memset

GitHub Workflow Status standard-readme compliant

ay_explicit_memset function, a version of memset that can escape dead code elimination in C compilers. Licensed under 0-clause BSD License (public domain-like license).

Useful for clearing out memory after a region of memory has been used by the program.

Table of Contents

Install

To use ay_explicit_memset() function:

  • Include this project using CMake and link your targets with CMake target explicit-memset::explicit-memset.

  • Or, copy include/ay/explicit-memset.h into your project and create a C file with following content (or just copy src/ay/explicit-memset.c and change #include path inside it with path of explicit-memset.h):

#define AY_EXPLICIT_MEMSET_IMPLEMENTATION
#include "Path to explicit-memset.h file"

Usage

Refer to include/ay/explicit-memset.h for usage.

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, shall be licensed as below, without any additional terms or conditions.

License

© 2022 arnavyc <[email protected]>

Licensed under the BSD Zero Clause License. See LICENSE file in the project root, or https://opensource.org/licenses/0BSD for full license information.

The SPDX license identifier for this project is 0BSD.

About

`ay_explicit_memset` function, a version of `memset` that can escape dead code elimination in C compilers. Licensed under 0-clause BSD License (public domain-like license).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published