All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] question about himport_r() and possible separator
@ 2016-09-12 11:54 Robert P. J. Day
  0 siblings, 0 replies; only message in thread
From: Robert P. J. Day @ 2016-09-12 11:54 UTC (permalink / raw)
  To: u-boot


  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
========================================================================

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-09-12 11:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-12 11:54 [U-Boot] question about himport_r() and possible separator Robert P. J. Day

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.