From 27df7979782aafca80ea4c7309284bd48fe021c0 Mon Sep 17 00:00:00 2001 From: hemant_mnkcg Date: Tue, 19 Jan 2021 14:20:04 -0500 Subject: Change unformat_init_string API in doc to match code Signed-off-by: hemant_mnkcg Change-Id: I4ec487054f928d52fe06d530df095b30edf66ae5 --- docs/gettingstarted/developers/infrastructure.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/gettingstarted/developers/infrastructure.md b/docs/gettingstarted/developers/infrastructure.md index cae34fc7799..a61068c75cd 100644 --- a/docs/gettingstarted/developers/infrastructure.md +++ b/docs/gettingstarted/developers/infrastructure.md @@ -438,8 +438,9 @@ follows: ```c unformat_input_t input; + u8 *s = ""; - unformat_init_string (&input, ""); + unformat_init_string (&input, (char *) s, strlen((char *) s)); /* or */ unformat_init_vector (&input, ); ``` -- cgit 1.2.3-korg