this post was submitted on 27 Oct 2023
1 points (100.0% liked)

C & C++

965 readers
15 users here now

founded 5 years ago
MODERATORS
 

I am writing a unit test and mocking library in C and I want to set the call stack memory to some pre determined value like memset. I want to do this before the test function is called so the test writer can verify they aren't using uninitialized memory in their tests. Is there any somewhat portable way to do this?

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here