Started on the client
[tpg/opendispense2.git] / src / client / main.c
1 /*
2  * OpenDispense 2 
3  * UCC (University [of WA] Computer Club) Electronic Accounting System
4  * - Dispense Client
5  *
6  * main.c - Core and Initialisation
7  *
8  * This file is licenced under the 3-clause BSD Licence. See the file
9  * COPYING for full details.
10  */
11 #include <stdio.h>
12
13 // === GLOBALS ===
14 char    *gsDispenseServer = "martello";
15  int    giDispensePort = 11020;
16
17 // === CODE ===
18 int main(int argc, char *argv[])
19 {
20         // Connect to server
21         
22
23         // Determine what to do
24         if( argc > 1 )
25         {
26                 if( strcmp(argv[1], "acct") == 0 )
27                 {
28                         return 0;
29                 }
30         }
31
32         // Ask server for stock list
33         
34         // Display the list for the user
35         // and choose what to dispense
36
37         return 0;
38 }

UCC git Repository :: git.ucc.asn.au