Created Money structure and implementation and also made some modification on the doxygen template
This commit is contained in:
parent
5d080d092d
commit
1695e9dc44
@@ -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
|
||||
Reference in New Issue
Block a user