X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/53f8c2c71e5962eeaccb80d04d2e0ff575d520fd..2424490f9b6c139164cdcdf0f82ced3f8bd73810:/sds.h?ds=sidebyside diff --git a/sds.h b/sds.h index 0fc2c928..c8b42f77 100644 --- a/sds.h +++ b/sds.h @@ -1,6 +1,6 @@ /* SDSLib, A C dynamic strings library * - * Copyright (c) 2006-2009, Salvatore Sanfilippo + * Copyright (c) 2006-2010, Salvatore Sanfilippo * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -52,12 +52,20 @@ sds sdscatlen(sds s, void *t, size_t len); sds sdscat(sds s, char *t); sds sdscpylen(sds s, char *t, size_t len); sds sdscpy(sds s, char *t); + +#ifdef __GNUC__ +sds sdscatprintf(sds s, const char *fmt, ...) + __attribute__((format(printf, 2, 3))); +#else sds sdscatprintf(sds s, const char *fmt, ...); +#endif + sds sdstrim(sds s, const char *cset); sds sdsrange(sds s, long start, long end); void sdsupdatelen(sds s); int sdscmp(sds s1, sds s2); sds *sdssplitlen(char *s, int len, char *sep, int seplen, int *count); void sdstolower(sds s); +void sdstoupper(sds s); #endif