MCPcopy Create free account
hub / github.com/commonmark/cmark / cmark_node_get_list_start

Function cmark_node_get_list_start

src/node.c:435–445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433}
434
435int cmark_node_get_list_start(cmark_node *node) {
436 if (node == NULL) {
437 return 0;
438 }
439
440 if (node->type == CMARK_NODE_LIST) {
441 return node->as.list.start;
442 } else {
443 return 0;
444 }
445}
446
447int cmark_node_set_list_start(cmark_node *node, int start) {
448 if (node == NULL || start < 0) {

Callers 6

constructorFunction · 0.85
accessorsFunction · 0.85
S_render_nodeFunction · 0.85
S_render_nodeFunction · 0.85
S_render_nodeFunction · 0.85
S_render_nodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected