27 lines
552 B
C
27 lines
552 B
C
/** @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 |