Changeset 38441 for trunk/Ohana/src/addstar/src/loadICRF_save_remote.c
- Timestamp:
- Jun 12, 2015, 6:18:23 PM (11 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/addstar/src/loadICRF_save_remote.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
Property svn:mergeinfo
set to
/branches/eam_branches/ohana.20150429 merged eligible
-
Property svn:mergeinfo
set to
-
trunk/Ohana/src/addstar/src/loadICRF_save_remote.c
r37807 r38441 2 2 # include "loadICRF.h" 3 3 # define DEBUG 1 4 5 int strextend (char *input, char *format,...) {6 7 char tmpextra[1024], tmpline[1024];8 va_list argp;9 10 va_start (argp, format);11 vsnprintf (tmpextra, 1024, format, argp);12 snprintf (tmpline, 1024, "%s %s", input, tmpextra);13 strcpy (input, tmpline);14 15 return TRUE;16 }17 4 18 5 int loadICRF_save_remote (ICRF_Stars *stars, int Nstars, HostTable *hosts, SkyRegion *region, char *fullname, AddstarClientOptions *options) { … … 64 51 65 52 // need to generate the remote command 66 char command[1024];67 s nprintf (command, 1024, "loadICRF_client");68 strextend ( command, "-hostID %d", host->hostID);69 strextend ( command, "-D CATDIR %s", CATDIR);70 strextend ( command, "-hostdir %s", host->pathname);71 strextend ( command, "-cpt %s", region->name);72 strextend ( command, "-input %s", filename);73 strextend ( command, "-D ADDSTAR_RADIUS %f", options->radius);53 char *command = NULL; 54 strextend (&command, "loadICRF_client"); 55 strextend (&command, "-hostID %d", host->hostID); 56 strextend (&command, "-D CATDIR %s", CATDIR); 57 strextend (&command, "-hostdir %s", host->pathname); 58 strextend (&command, "-cpt %s", region->name); 59 strextend (&command, "-input %s", filename); 60 strextend (&command, "-D ADDSTAR_RADIUS %f", options->radius); 74 61 75 62 fprintf (stderr, "command: %s\n", command);
Note:
See TracChangeset
for help on using the changeset viewer.
