[LTP] [PATCH v2 3/4] shell: add kconfig parse api
Cyril Hrubis
chrubis@suse.cz
Fri Jan 7 10:46:21 CET 2022
Hi!
> > > Maybe we can combine the arguments into one kconfigs struct and
> > > just do once check? something like:
> > Yes, it works well. Thanks.
>
> Btw, seems const char *kconfigs[64] is not enough for a long
> string combination, you can dynamically allocate memory
> according to arguments size. Or, just raise to a big number.
Just loop over the string twice and count the occurencens of IFS
character in the first loop.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list