Hi kirupians,
I have to write a unix shell for a school project without using any of the C libs, and I 'm stuck with properly handling the environment (extern char **environ).
Basicaly, to handle the env, what I did was copy it to a new char **env and I use that char ** to modify my environment and send that char ** to execve and such when needed.
Thats all good, but where the problem kicks in is when I need to add an env variable, since i can’t use realloc or other lib functions, I’m stuck with coding up my own home made realloc.
I’m totaly stuck on that, does anyone have any pointers to give me. (no pun intended aha)
thx =)