FACT++  1.0
void print_service_double ( double *  buff,
int  size 
)

Definition at line 1320 of file webDid.c.

References i, Service_content_str, size, sprintf(), sprintf_html(), and str.

Referenced by did_write_string().

1321 {
1322 int i;
1323 char *ptr, str[80], tmp[256];
1324 
1325  ptr = Service_content_str;
1326  ptr += (int)strlen(Service_content_str);
1327  for( i = 0; i < size; i++)
1328  {
1329  strcpy(tmp,"");
1330  if(i%4 == 0)
1331  {
1332  if(i != 0)
1333  {
1334  strcat(tmp,"&nbsp");
1335  }
1336  sprintf_html(str, 7, i);
1337  strcat(tmp,str);
1338  }
1339  sprintf(str,"%12.3G",*(buff++));
1340  strcat(tmp,str);
1341  if((i%4 == 3) || (i == size-1))
1342  {
1343  strcat(tmp,"<br />");
1344  }
1345  strcpy(ptr, tmp);
1346  ptr += (int)strlen(tmp);
1347  }
1348  strcpy(tmp,"<br />");
1349  strcpy(ptr, tmp);
1350  ptr += (int)strlen(tmp);
1351 }
int i
Definition: db_dim_client.c:21
char str[80]
Definition: test_client.c:7
int size
Definition: db_dim_server.c:17
int buff[BUFFSIZE]
Definition: db_dim_client.c:15
void sprintf_html(char *str, int n, int value)
Definition: webDid.c:1070
sprintf(name1,"NewService%d", i)
char * Service_content_str
Definition: webDid.c:112

+ Here is the call graph for this function:

+ Here is the caller graph for this function: