Like sdscpylen() but 't' must be a null-termined string so that the length * of the string is obtained with strlen(). */
| 437 | /* Like sdscpylen() but 't' must be a null-termined string so that the length |
| 438 | * of the string is obtained with strlen(). */ |
| 439 | sds sdscpy(sds s, const char *t) { |
| 440 | return sdscpylen(s, t, strlen(t)); |
| 441 | } |
| 442 | |
| 443 | /* Helper for sdscatlonglong() doing the actual number -> string |
| 444 | * conversion. 's' must point to a string with room for at least |