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

Definition at line 1746 of file did.c.

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

Referenced by did_write_string().

1747 {
1748 int i;
1749 char *ptr, str[80], tmp[256];
1750 
1751  ptr = Service_content_str;
1752  ptr += strlen(Service_content_str);
1753  for( i = 0; i < size; i++)
1754  {
1755  strcpy(tmp,"");
1756  if(i%4 == 0)
1757  {
1758  if(i != 0)
1759  {
1760  strcat(tmp," ");
1761  }
1762  sprintf(str," %5d: ",i);
1763  strcat(tmp,str);
1764  }
1765  sprintf(str,"%12.3G",*(buff++));
1766  strcat(tmp,str);
1767  if((i%4 == 3) || (i == size-1))
1768  {
1769  strcat(tmp,"\n");
1770  }
1771  strcpy(ptr, tmp);
1772  ptr += strlen(tmp);
1773  }
1774  strcpy(tmp,"\n");
1775  strcpy(ptr, tmp);
1776  ptr += strlen(tmp);
1777 }
int i
Definition: db_dim_client.c:21
char str[80]
Definition: test_client.c:7
char * Service_content_str
Definition: did.c:20
int size
Definition: db_dim_server.c:17
int buff[BUFFSIZE]
Definition: db_dim_client.c:15
sprintf(name1,"NewService%d", i)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: