mirror of
https://github.com/fluencelabs/redis
synced 2025-04-02 15:51:05 +00:00
commit
a99c751d6c
@ -383,7 +383,7 @@ sds sdstrim(sds s, const char *cset) {
|
|||||||
* Example:
|
* Example:
|
||||||
*
|
*
|
||||||
* s = sdsnew("Hello World");
|
* s = sdsnew("Hello World");
|
||||||
* sdstrim(s,1,-1); => "ello Worl"
|
* sdsrange(s,1,-1); => "ello World"
|
||||||
*/
|
*/
|
||||||
void sdsrange(sds s, int start, int end) {
|
void sdsrange(sds s, int start, int end) {
|
||||||
struct sdshdr *sh = (void*) (s-(sizeof(struct sdshdr)));
|
struct sdshdr *sh = (void*) (s-(sizeof(struct sdshdr)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user