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

Definition at line 1128 of file webDid.c.

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

1129 {
1130 int i,j;
1131 char *ptr, str[80], tmp[256];
1132 longlong last[4];
1133 
1134  ptr = Service_content_str;
1135  ptr += (int)strlen(Service_content_str);
1136  for( i = 0; i < size; i++)
1137  {
1138  strcpy(tmp,"");
1139  if(i%4 == 0)
1140  {
1141  if(i != 0)
1142  {
1143  strcat(tmp,"&nbsp");
1144  }
1145  sprintf_html(str, 7, i);
1146  strcat(tmp,str);
1147  }
1148  if(!(i%4))
1149  strcat(tmp,"H: ");
1150  sprintf(str,"&nbsp&nbsp&nbsp %08X",(unsigned)buff[i]);
1151  strcat(tmp,str);
1152  last[i%4] = buff[i];
1153  if((i%4 == 3) || (i == (size-1)))
1154  {
1155  strcat(tmp,"<br />");
1156  for(j = 0; j <= (i%4); j++)
1157  {
1158  if(j == 0)
1159  strcat(tmp,"&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp D: ");
1160  sprintf_html(str, 12, (int)last[j]);
1161  strcat(tmp,str);
1162  }
1163  strcat(tmp,"<br />");
1164  }
1165  strcpy(ptr, tmp);
1166  ptr += (int)strlen(tmp);
1167  }
1168  strcpy(tmp,"<br />");
1169  strcpy(ptr, tmp);
1170 }
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
void sprintf_html(char *str, int n, int value)
Definition: webDid.c:1070
sprintf(name1,"NewService%d", i)
char * Service_content_str
Definition: webDid.c:112

+ Here is the call graph for this function: