[U-Boot] question about himport_r() and possible separator
Robert P. J. Day
rpjday at crashcourse.ca
Mon Sep 12 13:54:15 CEST 2016
admittedly a simple question that i'll be able to test once i get
into the lab later today, but if someone knows the answer, terrific.
putting u-boot on a target board where there already exists, at a
well-known address, a set of "var=val" settings, with the format:
var1=val1 var2=val2 ... varn=valn\0
that is:
1) single space-separated
2) terminated by null byte
will current himport_r() handle importing this into a hashtable if i
specify a space character as separator, ***given*** that there is no
terminating space character after the final assignment?
perusing the code, it *looks* like that will work, given that i can
get the exact length of the values with strlen(), and i hand that off
to himport_r(), it appears that all will be well.
am i overlooking any subtle gotcha here?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
More information about the U-Boot
mailing list