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

Function cmark_node_set_title

src/node.c:559–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557}
558
559int cmark_node_set_title(cmark_node *node, const char *title) {
560 if (node == NULL) {
561 return 0;
562 }
563
564 switch (node->type) {
565 case CMARK_NODE_LINK:
566 case CMARK_NODE_IMAGE:
567 cmark_set_cstr(node->mem, &node->as.link.title, title);
568 return 1;
569 default:
570 break;
571 }
572
573 return 0;
574}
575
576const char *cmark_node_get_on_enter(cmark_node *node) {
577 if (node == NULL) {

Callers 1

accessorsFunction · 0.85

Calls 1

cmark_set_cstrFunction · 0.85

Tested by

no test coverage detected