[Bio] / Billogix / url_data.c Repository:
ViewVC logotype

Diff of /Billogix/url_data.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1, Mon Jun 7 15:30:08 2004 UTC revision 1.2, Mon Jun 14 22:04:49 2004 UTC
# Line 40  Line 40 
40    
41    while ((c = getc(fp)) != EOF) {    while ((c = getc(fp)) != EOF) {
42    
43      if (c != '\t' && c != '\n')      if (c != '\t' && c != '\n') {
44        /* Try to add the character to the field. */        /* Try to add the character to the field. */
45        if (f == FMAX) {        if (f == FMAX) {
46          field[FMAX] = '\0';          field[FMAX] = '\0';
# Line 49  Line 49 
49        }        }
50        else        else
51          field[f++] = c;          field[f++] = c;
52        }
53    
54      else {      else {
55        /* We have a field.  Prepend field to tuple. */        /* We have a field.  Prepend field to tuple. */
# Line 132  Line 133 
133    
134    sprintf(tmpfile, "/tmp/gprolog_bdfu_%d", getpid());    sprintf(tmpfile, "/tmp/gprolog_bdfu_%d", getpid());
135    
136    /* #define USE_CURL */
137  #ifdef USE_CURL  #ifdef USE_CURL
138    sprintf(command, "curl '%s' > %s 2> /dev/null", url, tmpfile);    sprintf(command, "curl \"%s\" > %s 2> /dev/null", url, tmpfile);
139  #else  #else
140    sprintf(command, "wget -O %s \"%s\" 2> /dev/null", tmpfile, url);    sprintf(command, "wget -O %s \"%s\" 2> /dev/null", tmpfile, url);
141  #endif  #endif

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3