Oh, and for the EXPLINATION of how it works...
You have an array of char *s.. and each element of the array points to a 
segment of the original command. Therefore, *cmd (cmd[0]) is the name of the 
command, *(cmd+1) points to the 1st argument... etc.

I tried to do this for efficiency. Comments on the efficiency are also 
welcome. But I have to goto work, and it's not a TOTALLY polished product 
either. Pardon the work in progress style. ;) I ripped it from my "work". :)

Mark

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Reply via email to