I\'m trying to split the cmdline of a process on Linux but it seems I cannot rely on it to be separated by \'\\0\' characters. Do you know why sometimes the \'\\0\' character is
A shot in the dark, but is it possible that \0 is separating terms and spaces are separating words within a term? For example,
\0
myprog "foo bar" baz
might appear in /proc/pid/cmdline as...
/proc/pid/cmdline
/usr/bin/myprog\0foo bar\0baz
Complete guess here, I can't seem to find any spaces on one of my Linux boxes.