MCPcopy Create free account
hub / github.com/acl-dev/acl / http_tmpl_title

Function http_tmpl_title

lib_protocol/src/http/http_tmpl.c:221–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221const char *http_tmpl_title(int status)
222{
223 int i, pos;
224
225 i = status / 100;
226 if (i < 1 || i > 5)
227 return (__unknown_status);
228
229 i--;
230 pos = status - __tmpl_maps[i].level;
231
232 if (pos >= __tmpl_maps[i].size)
233 return (__unknown_status);
234
235 if (__tmpl_maps[i].tmpl[pos].buf == NULL)
236 return (__unknown_status);
237
238 return (__tmpl_maps[i].tmpl[pos].title);
239}
240
241int http_tmpl_size(int status)
242{

Callers 2

http_error_replyFunction · 0.85
http_error_replyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…