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

Definition at line 1685 of file didMarkus.c.

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

Referenced by did_write_string().

1686 {
1687 int i;
1688 char *ptr, str[80], tmp[256];
1689 
1690  ptr = Service_content_str;
1691  ptr += strlen(Service_content_str);
1692  for( i = 0; i < size; i++)
1693  {
1694  strcpy(tmp,"");
1695  if(i%4 == 0)
1696  {
1697  if(i != 0)
1698  {
1699  strcat(tmp," ");
1700  }
1701  sprintf(str," %5d: ",i);
1702  strcat(tmp,str);
1703  }
1704  sprintf(str,"%12.3G",*(buff++));
1705  strcat(tmp,str);
1706  if((i%4 == 3) || (i == size-1))
1707  {
1708  strcat(tmp,"\n");
1709  }
1710  strcpy(ptr, tmp);
1711  ptr += strlen(tmp);
1712  }
1713  strcpy(tmp,"\n");
1714  strcpy(ptr, tmp);
1715  ptr += strlen(tmp);
1716 }
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: