[U-Boot] Question about Coding-Style

Albert ARIBAUD albert.u.boot at aribaud.net
Mon Feb 10 11:54:43 CET 2014


Hi Chris,

> > Hmm... Last time I checked,
> >
> > 	"abc"
> > 	"def"
> >
> > Is a valid C string, and does not require a backslash. Do I miss
> > something?
> 
> Yes, you are of course correct: the result is the C string "abcdef" and 
> the backslash in the original is superfluous.
> However a grep for "abcdef" in the source code won't match it :(
> This is why splitting strings like this is discouraged in the Linux kernel.

Got it, thanks.

> Cheers,
> Chris

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list