Remove the element pointed by 'p', and return the resulting listpack. * If 'newp' is not NULL, the next element pointer (to the right of the * deleted one) is returned by reference. If the deleted element was the * last one, '*newp' is set to NULL. */
| 807 | * deleted one) is returned by reference. If the deleted element was the |
| 808 | * last one, '*newp' is set to NULL. */ |
| 809 | unsigned char *lpDelete(unsigned char *lp, unsigned char *p, unsigned char **newp) { |
| 810 | return lpInsert(lp,NULL,0,p,LP_REPLACE,newp); |
| 811 | } |
| 812 | |
| 813 | /* Return the total number of bytes the listpack is composed of. */ |
| 814 | uint32_t lpBytes(unsigned char *lp) { |
nothing calls this directly
no test coverage detected