snp-lab-code/P08_Sync/work/Sync/banking/a1/banking.h

20 lines
672 B
C
Raw Normal View History

2022-02-17 11:32:44 +01:00
//******************************************************************************
// Course: BSy
// File: banking.h
// Author: M. Thaler, ZHAW
// Purpose: locking mechanisms
// Version: v.fs20
//******************************************************************************
// banking functions
void makeBank(int num_branches, int num_accounts);
void deleteBank(void);
long int withdraw(int branchNr, int accountNr, long int value) ;
void deposit(int branchNr, int accountNr, long int value);
void transfer(int fromB, int toB, int accountNr, long int value);
void checkAssets(void);
//******************************************************************************