FACT++  1.0
void print_service_longlong ( longlong buff,
int  size 
)

Definition at line 1527 of file did.c.

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

1528 {
1529 int i,j;
1530 char *ptr, str[80], tmp[256];
1531 longlong last[4];
1532 /*
1533 char *asc;
1534  asc = (char *)buff;
1535 */
1536  ptr = Service_content_str;
1537  ptr += strlen(Service_content_str);
1538  for( i = 0; i < size; i++)
1539  {
1540  strcpy(tmp,"");
1541  if(i%4 == 0)
1542  {
1543  if(i != 0)
1544  {
1545  strcat(tmp," ");
1546  }
1547  sprintf(str,"%5d ",i);
1548  strcat(tmp,str);
1549  }
1550  if(!(i%4))
1551  strcat(tmp,"H: ");
1552  sprintf(str," %08X",(unsigned)buff[i]);
1553  strcat(tmp,str);
1554  last[i%4] = buff[i];
1555  if((i%4 == 3) || (i == (size-1)))
1556  {
1557  strcat(tmp,"\n");
1558  for(j = 0; j <= (i%4); j++)
1559  {
1560  if(j == 0)
1561  strcat(tmp," D: ");
1562  sprintf(str,"%12d",(int)last[j]);
1563  strcat(tmp,str);
1564  }
1565  strcat(tmp,"\n");
1566 /*
1567  asc = (char *)&buff[i+1];
1568 */
1569  }
1570  strcpy(ptr, tmp);
1571  ptr += strlen(tmp);
1572  }
1573  strcpy(tmp,"\n");
1574  strcpy(ptr, tmp);
1575 }
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
int64_t longlong
Definition: dim_common.h:56
int buff[BUFFSIZE]
Definition: db_dim_client.c:15
sprintf(name1,"NewService%d", i)

+ Here is the call graph for this function: