libmemalloc 0.0.0-alpha
The Magic of Memory Transmutation
Loading...
Searching...
No Matches
Application entry point

Hosted executable that calls the public library fixture. More...

Collaboration diagram for Application entry point:

Functions

int main (void)
 Call the library fixture and return its status to the host.

Detailed Description

Hosted executable that calls the public library fixture.

Function Documentation

◆ main()

int main ( void )

Call the library fixture and return its status to the host.

Calls MOCK_identity() once. The fixture currently always succeeds; the forwarding path preserves a nonzero result if the fixture contract is changed in a future revision.

Returns
The fixture status as the hosted process exit status.
Return values
0Successful completion of the linkage check.
Postcondition
No application-owned resources remain to be released.
Side Effects
Process termination only; the application performs no I/O.
Complexity
Constant time and constant automatic storage.
See also
MOCK_identity

Definition at line 63 of file main.c.

64{
65 int ret = 0;
66
67 ret = MOCK_identity();
68 if (ret != 0)
69 goto function_output;
70
71function_output:
72 return ret;
73}
int MOCK_identity(void)
Return the success result used by packaging checks.
Definition mock.c:61

References main(), and MOCK_identity().

Referenced by main().

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