FACT++  1.0
void print_service_short ( short *  buff,
int  size 
)

Definition at line 1172 of file webDid.c.

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

Referenced by did_write_string().

1173 {
1174 int i,j;
1175 char *ptr, str[80], tmp[256];
1176 short last[8];
1177 
1178  ptr = Service_content_str;
1179  ptr += (int)strlen(Service_content_str);
1180  for( i = 0; i < size; i++)
1181  {
1182  strcpy(tmp,"");
1183  if(i%8 == 0)
1184  {
1185  if(i != 0)
1186  {
1187  strcat(tmp,"&nbsp");
1188  }
1189  sprintf_html(str, 7, i);
1190  strcat(tmp,str);
1191  }
1192  if(!(i%8))
1193  strcat(tmp,"H: ");
1194  sprintf(str,"&nbsp %04X",buff[i]);
1195  strcat(tmp,str);
1196  last[i%8] = buff[i];
1197  if((i%8 == 7) || (i == (size-1)))
1198  {
1199  strcat(tmp,"<br />");
1200  for(j = 0; j <= (i%8); j++)
1201  {
1202  if(j == 0)
1203  strcat(tmp,"&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp D: ");
1204  sprintf_html(str, 6, last[j]);
1205  strcat(tmp,str);
1206  }
1207  strcat(tmp,"<br />");
1208  }
1209  strcpy(ptr, tmp);
1210  ptr += (int)strlen(tmp);
1211  }
1212  strcpy(tmp,"<br />");
1213  strcpy(ptr, tmp);
1214 }
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
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:

+ Here is the caller graph for this function: