MCPcopy Create free account
hub / github.com/IBM/Project_CodeNet / show_16

Function show_16

tools/json-graph/src/jgflib.c:306–316  ·  view source on GitHub ↗

Outputs up to the first 16 chars of token to fp. */

Source from the content-addressed store, hash-verified

304
305/** Outputs up to the first 16 chars of token to fp. */
306static void show_16(FILE *fp, jsmntok_t *tok)
307{
308 size_t len = tok->end - tok->start;
309 if (len > 16) {
310 len = 16;
311 fwrite(input + tok->start, 1, len, fp);
312 fputs("...", fp);
313 }
314 else
315 fwrite(input + tok->start, 1, len, fp);
316}
317
318void show_attrs(FILE *fp, Attr attrs, int need_comma)
319{

Callers 1

errorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected