MCPcopy Create free account
hub / github.com/aldostools/webMAN-MOD / add_url

Function add_url

include/init/html.h:314–321  ·  view source on GitHub ↗

static size_t utf8dec(char *dst, char *src, u8 cpy2src) { size_t j = 0; unsigned char c; for(size_t i = 0; src[i]; i++, j++) { c = (unsigned char)src[i]; if( (c & 0x80) == 0 ) { dst[j] = c; } else if( (c & 0xE0) == 0xC0 ) { dst[j] = ((c & 0x1F)<<6) | (src[i+1] & 0x3F); i+=1; } else if( (c & 0xF0) == 0xE0 ) { dst[j] = ((c & 0xF)<<12); dst[j] |= ((src[i+1]

Source from the content-addressed store, hash-verified

312}
313*/
314static void add_url(char *body, const char *prefix, const char *url, const char *sufix)
315{
316 if(!body) return;
317
318 if(prefix) concat(body, prefix);
319 if(url) concat(body, url);
320 if(sufix) concat(body, sufix);
321}
322
323static size_t add_html(u8 id, int value, char *buffer, char *data)
324{

Callers 3

add_breadcrumb_trailFunction · 0.85
http_responseFunction · 0.85
install_list.hFile · 0.85

Calls 1

concatFunction · 0.85

Tested by

no test coverage detected