Browse Source

Update header files

remotes/origin/feature/get-current-customer-account-balance
Shivam Chaudhary 2 years ago
parent
commit
f3415cf5a9
  1. 1
      src/currentCustomerAccountBalance.c
  2. 5
      src/currentCustomerAccountBalance.h

1
src/currentCustomerAccountBalance.c

@ -1,4 +1,5 @@
#include "currentCustomerAccountBalance.h" #include "currentCustomerAccountBalance.h"
#include "_file_information.h"
float fetchBalanceFromBalanceString(char balance_String[MAX_LENGTH]) { float fetchBalanceFromBalanceString(char balance_String[MAX_LENGTH]) {
float balance = 0; float balance = 0;

5
src/currentCustomerAccountBalance.h

@ -3,7 +3,10 @@
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include "_file_information.h"
//#include "_file_information.h"
#define MAX_LENGTH 100
#define CUSTOMER_DATA_FILE "CustomerData.txt"
float getAvailableAccountBalance(int user_id); float getAvailableAccountBalance(int user_id);
float fetchBalanceFromBalanceString(char balance_String[MAX_LENGTH]); float fetchBalanceFromBalanceString(char balance_String[MAX_LENGTH]);
Loading…
Cancel
Save