util: New function ovs_scan().
authorBen Pfaff <blp@nicira.com>
Fri, 15 Nov 2013 16:54:56 +0000 (08:54 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 15 Nov 2013 16:54:56 +0000 (08:54 -0800)
commited2232fc7720ca482d3be097706e70588a31cb1f
treec2bcc30b05a14dcc61de0d82dca6f1a9035bd477
parent1af1ed8500bf10a1bd4f00bea6daaaa3e72578f8
util: New function ovs_scan().

This new function is essentially an implementation of sscanf() with
slightly different behavior (see the comment) that is more convenient for
Open vSwitch internal use.  Also, this implementation ought to work out of
the box on Windows, which has a defective sscanf() that lacks the 'hh'
modifier required to scan into a char variable.

Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/compiler.h
lib/util.c
lib/util.h
tests/library.at
tests/test-util.c