Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
e711a9ac
Commit
e711a9ac
authored
Apr 03, 2016
by
Dvir Volk
Committed by
antirez
May 10, 2016
Browse files
fixed the doc with a right function name
parent
e443ad9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/modules/API.md
View file @
e711a9ac
...
@@ -160,9 +160,10 @@ you may need to directly access the string object.
...
@@ -160,9 +160,10 @@ you may need to directly access the string object.
There are a few functions in order to work with string objects:
There are a few functions in order to work with string objects:
const char *RedisModule_StringPtr(RedisModuleString *string, size_t *len);
const char *RedisModule_StringPtr
Len
(RedisModuleString *string, size_t *len);
The above function accesses a string by returning its pointer and length.
The above function accesses a string by returning its pointer and setting its
length in
`len`
.
You should never write to a string object pointer, as you can see from the
You should never write to a string object pointer, as you can see from the
`const`
pointer qualifier.
`const`
pointer qualifier.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment