Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ There are many ways to create SDS strings:
Note: `sdslen` return value is casted to `int` because it returns a `size_t`
type. You can use the right `printf` specifier instead of casting.

Note: If the first argument to `sdsnewlen` is `0`, it will zero-initialize the
string's memory. This way you can create an empty buffer of a certain length.

* The `sdsempty()` function creates an empty zero-length string:

```c
Expand Down