O2S C Library 1.8.2
Provide high-level data-structures and other fundamental tools for C projects
Loading...
Searching...
No Matches
cleanup.c File Reference

Useful for RAII. More...

#include "o2s/cleanup.h"
#include <stdlib.h>

Go to the source code of this file.

Functions

void cleanup_allocated_memory (void **address)
 Given the address of a pointer, this pointer is passed to free if its value is not NULL.

Detailed Description

Useful for RAII.

Author
Antoine GAGNIERE

Definition in file cleanup.c.