Hi,

I am relatively new to this and trying to learn the art of using
format/unformat.
My requirement is that if my command is "mycmd" followed by some
string (which may have spaces in it), then I should be able to read
the entire string up to the \n character typed by the user.

Eg. if the command is typed like

mycmd foo1 foo2 foo3

(the "path" of the VLIB_CLI_COMMAND  is "mycmd")
Then in my CLI callback function, I want to be able to get the string
"foo1 foo2 foo3" setup in a u8* variable. If the leading and trailing
spaces are trimmed, I am fine by that. I am looking for the correct
way to call the unformat functions in my command callback function to
achieve this.

Regards
-Prashant
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10130): https://lists.fd.io/g/vpp-dev/message/10130
Mute This Topic: https://lists.fd.io/mt/24505388/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to