Modify an sds string in-place to make it empty (zero length). * However all the existing buffer is not discarded but set as free space * so that next append operations will not require allocations up to the * number of bytes previously available. */
| 191 | * so that next append operations will not require allocations up to the |
| 192 | * number of bytes previously available. */ |
| 193 | void sdsclear(sds s) { |
| 194 | sdssetlen(s, 0); |
| 195 | s[0] = '\0'; |
| 196 | } |
| 197 | |
| 198 | /* Enlarge the free space at the end of the sds string so that the caller |
| 199 | * is sure that after calling this function can overwrite up to addlen |
nothing calls this directly
no test coverage detected