Created Money structure and implementation and also made some modification on the doxygen template

This commit is contained in:
Gustavo Henrique Santos Souza de Miranda
2024-04-24 02:48:45 -03:00
parent 5d080d092d
commit 1695e9dc44
4 changed files with 220 additions and 7 deletions
+27
View File
@@ -0,0 +1,27 @@
/** @file money.h
* Money structure header file used in the program
*/
#ifndef MONEY_H
#define MONEY_H
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
/**
* @struct money
* @brief Struct Holding the Monetary value in a separate form
*/
typedef struct money {
int full; ///< The Full part of the monetary value
int cents; ///< The Cents parts of the monetary value
} Money;
Money *InitializeMoney(int full, int cents);
void addMoneyToMoney(Money *dest, Money *src);
void subtractMoneyToMoney(Money *dest, Money *src);
#endif