FACT++  1.0
void print_service_float ( float *  buff,
int  size 
)

Definition at line 1287 of file webDid.c.

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

Referenced by did_write_string().

1288 {
1289 int i;
1290 char *ptr, str[80], tmp[256];
1291 
1292  ptr = Service_content_str;
1293  ptr += (int)strlen(Service_content_str);
1294  for( i = 0; i < size; i++)
1295  {
1296  strcpy(tmp,"");
1297  if(i%4 == 0)
1298  {
1299  if(i != 0)
1300  {
1301  strcat(tmp,"&nbsp");
1302  }
1303  sprintf_html(str, 7, i);
1304  strcat(tmp,str);
1305  }
1306  sprintf(str,"%12.3G",*(buff++));
1307  strcat(tmp,str);
1308  if((i%4 == 3) || (i == size-1))
1309  {
1310  strcat(tmp,"<br />");
1311  }
1312  strcpy(ptr, tmp);
1313  ptr += (int)strlen(tmp);
1314  }
1315  strcpy(tmp,"<br />");
1316  strcpy(ptr, tmp);
1317  ptr += (int)strlen(tmp);
1318 }
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: