MCPcopy Create free account
hub / github.com/F-Stack/f-stack / quicklistBookmarkDelete

Function quicklistBookmarkDelete

app/redis-6.2.6/src/quicklist.c:1484–1490  ·  view source on GitHub ↗

Delete a named bookmark. * returns 0 if bookmark was not found, and 1 if deleted. * Note that the bookmark memory is not freed yet, and is kept for future use. */

Source from the content-addressed store, hash-verified

1482 * returns 0 if bookmark was not found, and 1 if deleted.
1483 * Note that the bookmark memory is not freed yet, and is kept for future use. */
1484int quicklistBookmarkDelete(quicklist *ql, const char *name) {
1485 quicklistBookmark *bm = _quicklistBookmarkFindByName(ql, name);
1486 if (!bm)
1487 return 0;
1488 _quicklistBookmarkDelete(ql, bm);
1489 return 1;
1490}
1491
1492quicklistBookmark *_quicklistBookmarkFindByName(quicklist *ql, const char *name) {
1493 unsigned i;

Callers 2

scanLaterListFunction · 0.85
quicklistTestFunction · 0.85

Calls 2

_quicklistBookmarkDeleteFunction · 0.85

Tested by

no test coverage detected