MCPcopy Index your code
hub / github.com/IBM/Project_CodeNet / show_attrs

Function show_attrs

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

Source from the content-addressed store, hash-verified

316}
317
318void show_attrs(FILE *fp, Attr attrs, int need_comma)
319{
320 for (; attrs; attrs = attrs->next) {
321 if (need_comma) fputc(',', fp);
322 show(fp, attrs->key, 0);
323 fputs("=", fp);
324 show(fp, attrs->value, 1);
325 need_comma = 1;
326 }
327}
328
329/** Checks whether (JSMN_STRING) token equals a certain string value. */
330int string_eq(jsmntok_t *tok, const char *s) {

Callers 2

graph_show_adjFunction · 0.85
graph_show_list_dotFunction · 0.85

Calls 1

showFunction · 0.85

Tested by

no test coverage detected