Design Pattern Examples
Overview of object-oriented design patterns
Mediator_User.h
Go to the documentation of this file.
1
5
6#pragma once
7#ifndef __MEDIATOR_USER_H__
8#define __MEDIATOR_USER_H__
9
13typedef struct
14{
18 const char* Name;
19} User;
20
21//-----------------------------------------------------------------------------
22
29User* User_Create(const char* userName);
30
37void User_Destroy(User* user);
38
39
40#endif // __MEDIATOR_USER_H__
41
void User_Destroy(User *user)
Destroy the given User object, releasing any associated memory resources. After this function returns...
Definition: Mediator_User.c:41
User * User_Create(const char *userName)
Create a User object with the specified name.
Definition: Mediator_User.c:17
Represents a user with a name.
Definition: Mediator_User.h:14
const char * Name
The name of the user.
Definition: Mediator_User.h:18