
Dear Matthias Fuchs,
In message 201007291116.15503.matthias.fuchs@esd-electronics.com you wrote:
Actually neither MAC addresses nor serial# are part of the default environment.
Right. But, I'd like to have that described feature in any case. Let's call it different, but the functionality would be helpful. What about a further option like '-p' for keep _p_rotected.
I see this a s part of a sub-sequent patch (series), which adds flags to variables (like read-only, don't-save, etc.).
No. We need the address of the pointer variable, so the function can store the result pointer there.
Nak. You added &-operator when calling: hexport('\0', &res, ENV_SIZE); That's one to much. You can also remove the &-operator from this: res = (char *)&envp->data;
So the code will look like this:
Thanks, will re-check this when I have a little more time.
Best regards,
Wolfgang Denk