#ifndef __withdraw_h #define __withdraw_h int tr_Withdraw(char *cardNumber); /*-------------------------------------------------------------- * tr_Withdraw() * * Description: Execute a withdraw from a user account * * Module: tr - transaction * * Arguments: * cardNumber - card # in integer form * * Return values: * 0 - no errors * 1 - no accounts attached to cardNumber * 2 - error retrieving account information * 3 - additional withdraw amount selected exceeds daily withdraw limit * 4 - error retrieving daily withdraw limit remaining from database *--------------------------------------------------------------*/ long int tr_GetWithdrawAmount(char* cardNumber, char* source_account_number); /*-------------------------------------------------------------- * tr_GetWithdrawAmount() * * Description: Get amount to withdraw from user * * Module: tr - transaction * * Arguments: * none * * Return values: * -1 - user cancelled * >0 - return actual amount to withdraw * 100 *--------------------------------------------------------------*/ #endif