Hi,

On 2025. 04. 07. 12:08, Marc Kewitz wrote:
+// inspired by GNU core utilities env.c
+static void split_string (char const *str, int *optind, int *argc, char 
***argv)
+{
+       // remember the amount of extra arguments after the string to split
+       int extra_argc = *argc - *optind;
+       // 1 is reserved for the executable name of env
+       int new_argc = extra_argc + 1;
+       int new_ind = new_argc - extra_argc;

So, just '1'?

Bence

_______________________________________________
busybox mailing list
[email protected]
https://lists.busybox.net/mailman/listinfo/busybox

Reply via email to