libmemalloc 0.0.0-alpha
The Magic of Memory Transmutation
Loading...
Searching...
No Matches
Public fixture interface

Library operation used to exercise packaging and linkage. More...

Collaboration diagram for Public fixture interface:

Functions

int MOCK_identity (void)
 Return the success result used by packaging checks.

Detailed Description

Library operation used to exercise packaging and linkage.

Function Documentation

◆ MOCK_identity()

LMA_API int MOCK_identity ( void )

Return the success result used by packaging checks.

This fixture supplies one linkable library symbol. It performs no allocation and implements no allocator behavior.

Returns
The fixed fixture status; this operation has no failure path.
Return values
0The fixture completed successfully.
Postcondition
No shared state or resources have changed.
Thread Safety
Concurrent and recursive calls are independent; no lock is required because the operation accesses no shared state.
Side Effects
None; no allocation, callbacks, or external I/O occurs.
Complexity
Constant time and constant automatic storage per call.

Definition at line 61 of file mock.c.

62{
63 int ret = 0;
64
65 goto function_output;
66
67function_output:
68 return ret;
69}

References MOCK_identity().

Referenced by main(), and MOCK_identity().

Here is the call graph for this function:
Here is the caller graph for this function: