Definition at line 1216 of file webDid.c.
References i, Service_content_str, size, sprintf(), sprintf_html(), and str.
Referenced by did_write_string().
1219 char *asc, *ptr,
str[80], tmp[256];
1224 for( i = 0; i <
size; i++)
1231 strcat(tmp,
" ");
1242 strcat(tmp,&str[(
int)strlen(str)-2]);
1247 if((i%16 == 15) || (i == (size-1)))
1251 for(j = 1; j < 16 - (i%16); j++)
1252 strcat(tmp,
"   ");
1254 strcat(tmp,
"    '");
1255 for(j = 0; j <= (i%16) ; j++)
1261 else if(asc[j] ==
'<')
1263 else if(asc[j] ==
'>')
1265 else if(asc[j] ==
'&')
1277 strcat(tmp,
"'<br />");
1278 asc = (
char *)&
buff[i+1];
1281 ptr += (int)strlen(tmp);
1283 strcpy(tmp,
"<br />");
void sprintf_html(char *str, int n, int value)
sprintf(name1,"NewService%d", i)
char * Service_content_str