IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 7, 2012, 11:48:36 AM (14 years ago)
Author:
eugene
Message:

working on dvodist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/Ohana/src/photdbc/src/HostTableLoad.c

    r33204 r33207  
    11# include "photdbc.h"
    22# define DEBUG 1
    3 
    4 typedef struct {
    5   char *hostname;
    6   char *pathname;
    7   int hostID;
    8 } HostInfo
    9 
    10 typedef struct {
    11     int Nhosts;
    12   HostInfo *hosts;
    13 } HostTable
    143
    154void InitHosts (HostInfo *hosts, int Nhosts, int NHOSTS) {
     
    3423}
    3524
    36 HostTable *HostTableLoad () {
     25HostTable *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);
    3731
    3832  FILE *f = fopen (filename, "r");
Note: See TracChangeset for help on using the changeset viewer.