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

Definition at line 1508 of file didMarkus.c.

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

1509 {
1510 int i,j;
1511 char *asc, *ptr, str[80], tmp[256];
1512 longlong last[4];
1513 
1514  asc = (char *)buff;
1515  ptr = Service_content_str;
1516  ptr += strlen(Service_content_str);
1517  for( i = 0; i < size; i++)
1518  {
1519  strcpy(tmp,"");
1520  if(i%4 == 0)
1521  {
1522  if(i != 0)
1523  {
1524  strcat(tmp," ");
1525  }
1526  sprintf(str,"%5d ",i);
1527  strcat(tmp,str);
1528  }
1529  if(!(i%4))
1530  strcat(tmp,"H: ");
1531  sprintf(str," %08X",(unsigned)buff[i]);
1532  strcat(tmp,str);
1533  last[i%4] = buff[i];
1534  if((i%4 == 3) || (i == (size-1)))
1535  {
1536  strcat(tmp,"\n");
1537  for(j = 0; j <= (i%4); j++)
1538  {
1539  if(j == 0)
1540  strcat(tmp," D: ");
1541  sprintf(str,"%12d",(int)last[j]);
1542  strcat(tmp,str);
1543  }
1544  strcat(tmp,"\n");
1545  asc = (char *)&buff[i+1];
1546  }
1547  strcpy(ptr, tmp);
1548  ptr += strlen(tmp);
1549  }
1550  strcpy(tmp,"\n");
1551  strcpy(ptr, tmp);
1552 }
int i
Definition: db_dim_client.c:21
char str[80]
Definition: test_client.c:7
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
char * Service_content_str
Definition: didMarkus.c:20
sprintf(name1,"NewService%d", i)

+ Here is the call graph for this function: