- Timestamp:
- Feb 7, 2012, 11:48:36 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20111122/Ohana/src/photdbc/src/HostTableLoad.c
r33204 r33207 1 1 # include "photdbc.h" 2 2 # define DEBUG 1 3 4 typedef struct {5 char *hostname;6 char *pathname;7 int hostID;8 } HostInfo9 10 typedef struct {11 int Nhosts;12 HostInfo *hosts;13 } HostTable14 3 15 4 void InitHosts (HostInfo *hosts, int Nhosts, int NHOSTS) { … … 34 23 } 35 24 36 HostTable *HostTableLoad () { 25 HostTable *HostTableLoad (char *catdir) { 26 27 char *filename = NULL; 28 29 ALLOCATE (filename, char, strlen(catdir) + strlen("/HostTable.dat") + 1); 30 sprintf (filename, "%s/HostTable.dat", catdir); 37 31 38 32 FILE *f = fopen (filename, "r");
Note:
See TracChangeset
for help on using the changeset viewer.
