![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Note that the flag arguments -p
and -n
leave you with a
memory structure that looks like this:
argument_array *---*---* | | | <-- Pointer to an array of pointers *---*---* ------- | *-* Array of pointers to character strings | | v | *---*---*---*---*---*---*---*---* | | | | | | | | | | <------* *---*---*---*---*---*---*---*---* ------- ------- ------- ------- | | | | | | | v | | | *---*---*---*---*---*---*---*---*---*---* | | | | t | e | s | t | . | d | a | t | a | 0 | | | | *---*---*---*---*---*---*---*---*---*---* | | v | | *---*---*---* | | | - | n | 0 | | | *---*---*---* | v | *---*---*---* | | - | p | 0 | | *---*---*---* v *---*---*---*---*---*---*---*---*---*---*---*---*---*---*---* | a | n | a | l | y | z | e | _ | t | r | a | d | e | s | 0 | *---*---*---*---*---*---*---*---*---*---*---*---*---*---*---*