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

Function cmark_node_set_list_start

src/node.c:447–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445}
446
447int cmark_node_set_list_start(cmark_node *node, int start) {
448 if (node == NULL || start < 0) {
449 return 0;
450 }
451
452 if (node->type == CMARK_NODE_LIST) {
453 node->as.list.start = start;
454 return 1;
455 } else {
456 return 0;
457 }
458}
459
460int cmark_node_get_list_tight(cmark_node *node) {
461 if (node == NULL) {

Callers 1

accessorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected