Implementation of the Adapter_Exercise() function as used in the Adapter Pattern. More...
#include <stdio.h>
#include "helpers/_countof.h"
#include "Adapter_Exercise.h"
#include "Adapter_Functions.h"
Go to the source code of this file.
Functions | |
void | Adapter_Exercise (void) |
Example of using the Adapter design pattern in C. | |
Implementation of the Adapter_Exercise() function as used in the Adapter Pattern.
Definition in file Adapter_Exercise.c.
void Adapter_Exercise | ( | void | ) |
Example of using the Adapter design pattern in C.
This example adapts functions that:
The Adapter functions translate the 32-bit chunk access into arrays of bytes. The Adapter functions also provide human-readable messages for error codes.
Definition at line 25 of file Adapter_Exercise.c.
References _countof, Adapter_BufferToString(), Adapter_CloseMemory(), Adapter_GetLastErrorMessage(), Adapter_GetMemorySize(), Adapter_OpenMemory(), Adapter_ReadMemory(), Adapter_WriteMemory(), and Memory_Block_0.