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

Definition at line 1718 of file didMarkus.c.

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

Referenced by did_write_string().

1719 {
1720 int i;
1721 char *ptr, str[80], tmp[256];
1722 
1723  ptr = Service_content_str;
1724  ptr += strlen(Service_content_str);
1725  for( i = 0; i < size; i++)
1726  {
1727  strcpy(tmp,"");
1728  if(i%4 == 0)
1729  {
1730  if(i != 0)
1731  {
1732  strcat(tmp," ");
1733  }
1734  sprintf(str," %5d: ",i);
1735  strcat(tmp,str);
1736  }
1737  sprintf(str,"%12.3G",*(buff++));
1738  strcat(tmp,str);
1739  if((i%4 == 3) || (i == size-1))
1740  {
1741  strcat(tmp,"\n");
1742  }
1743  strcpy(ptr, tmp);
1744  ptr += strlen(tmp);
1745  }
1746  strcpy(tmp,"\n");
1747  strcpy(ptr, tmp);
1748  ptr += strlen(tmp);
1749 }
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
char * Service_content_str
Definition: didMarkus.c:20
sprintf(name1,"NewService%d", i)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: