FACT++  1.0
void print_service_standard ( int *  buff,
int  size 
)

Definition at line 1084 of file webDid.c.

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

Referenced by did_write_string().

1085 {
1086 int i,j;
1087 char *ptr, str[80], tmp[256];
1088 int last[4];
1089 
1090  ptr = Service_content_str;
1091  ptr += (int)strlen(Service_content_str);
1092  for( i = 0; i < size; i++)
1093  {
1094  strcpy(tmp,"");
1095  if(i%4 == 0)
1096  {
1097  if(i != 0)
1098  {
1099  strcat(tmp,"&nbsp");
1100  }
1101  sprintf_html(str, 7, i);
1102  strcat(tmp,str);
1103  }
1104  if(!(i%4))
1105  strcat(tmp,"H: ");
1106  sprintf(str,"&nbsp&nbsp&nbsp %08X",buff[i]);
1107  strcat(tmp,str);
1108  last[i%4] = buff[i];
1109  if((i%4 == 3) || (i == (size-1)))
1110  {
1111  strcat(tmp,"<br />");
1112  for(j = 0; j <= (i%4); j++)
1113  {
1114  if(j == 0)
1115  strcat(tmp,"&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp D: ");
1116  sprintf_html(str, 12, last[j]);
1117  strcat(tmp,str);
1118  }
1119  strcat(tmp,"<br />");
1120  }
1121  strcpy(ptr, tmp);
1122  ptr += (int)strlen(tmp);
1123  }
1124  strcpy(tmp,"<br />");
1125  strcpy(ptr, tmp);
1126 }
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: