util: Introduce ovs_scan_len()
authorPravin B Shelar <pshelar@nicira.com>
Mon, 10 Nov 2014 20:46:11 +0000 (12:46 -0800)
committerPravin B Shelar <pshelar@nicira.com>
Wed, 12 Nov 2014 20:40:28 +0000 (12:40 -0800)
commitf071cbbaadc271b6f6b1d3c38c943f1ee2c17b67
tree45fa6a78e5fcf36eaf8726c14ec29c8ce004989a
parent493823d8d5379ed853631b03190b3cf10e980f7b
util: Introduce ovs_scan_len()

This is similar to ovs_scan but takes int pointer as extra
parameter, this pointer point to starting index of the string.
On successful scan this API stores number of characters
scanned.  This API is useful for parsing complex odp actions
e.g. tun_push action.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Thomas Graf <tgraf@noironetworks.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/util.c
lib/util.h