Change unformat_init_string API in doc to match code
Signed-off-by: hemant_mnkcg <hemant@mnkcg.com> Change-Id: I4ec487054f928d52fe06d530df095b30edf66ae5
This commit is contained in:

committed by
Dave Wallace

parent
d6361c7b89
commit
27df797978
@ -438,8 +438,9 @@ follows:
|
||||
|
||||
```c
|
||||
unformat_input_t input;
|
||||
u8 *s = "<some-C-string>";
|
||||
|
||||
unformat_init_string (&input, "<some-C-string>");
|
||||
unformat_init_string (&input, (char *) s, strlen((char *) s));
|
||||
/* or */
|
||||
unformat_init_vector (&input, <u8-vector>);
|
||||
```
|
||||
|
Reference in New Issue
Block a user