1
submitted 2 years ago by [email protected] to c/[email protected]

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 new old
there doesn't seem to be anything here
this post was submitted on 27 Oct 2023
1 points (100.0% liked)

C & C++

1002 readers
7 users here now

founded 5 years ago
MODERATORS