aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-02-06 16:12:01 +0100
committerantirez <antirez@gmail.com>2014-02-06 16:12:01 +0100
commitd3bf159cf8c44655e63009b50d96e68dbf929706 (patch)
tree6d3019fe5b13857a2b8d4082549b81264dc2f290
parent46293bda3315cfa3adcba3084deddf115f28b7db (diff)
downloadsds-d3bf159cf8c44655e63009b50d96e68dbf929706.tar.xz
Markdown list removed from README where it caused issues.
-rw-r--r--README.md13
1 files changed, 3 insertions, 10 deletions
diff --git a/README.md b/README.md
index adffc46..161b87f 100644
--- a/README.md
+++ b/README.md
@@ -118,9 +118,7 @@ Creating SDS strings
There are many ways to create SDS strings:
-* The `sdsnew` function creates an SDS string starting from a C null terminated string. We already saw how it works in the above example.
-* The `sdsnewlen` function is similar to `sdsnew` but instead of creating the string assuming that the input string is null terminated, it gets an additional length parameter. This way you can create a string using binary data:
-
+The `sdsnew` function creates an SDS string starting from a C null terminated string. We already saw how it works in the above example. The `sdsnewlen` function is similar to `sdsnew` but instead of creating the string assuming that the input string is null terminated, it gets an additional length parameter. This way you can create a string using binary data:
char buf[3];
sds mystring;
@@ -133,21 +131,17 @@ There are many ways to create SDS strings:
output> ABC of len 3
-
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.
-* The `sdsempty()` function creates an empty zero-length string:
-
+The `sdsempty()` function creates an empty zero-length string:
sds mystring = sdsempty();
printf("%d\n", (int) sdslen(mystring));
output> 0
-
-* The `sdsdup()` function duplicates an already existing SDS string:
-
+Finally the `sdsdup()` function duplicates an already existing SDS string:
sds s1, s2;
@@ -157,7 +151,6 @@ type. You can use the right `printf` specifier instead of casting.
output> Hello Hello
-
Obtaining the string length
---