A
August Derleth
What does the C Standard (any of them) say about this issue? Can a
conformant implementation allow argv[0] == NULL? Can a conformant
implementation allow argv[0] to cause the machine to segfault if it is
dereferenced?
I understand, I think, the difference between hosted implementations and
freestanding ones (as in microcontrollers). I just want to know if a
program to be compiled by a conformant compiler needs to be careful with
argv[0].
conformant implementation allow argv[0] == NULL? Can a conformant
implementation allow argv[0] to cause the machine to segfault if it is
dereferenced?
I understand, I think, the difference between hosted implementations and
freestanding ones (as in microcontrollers). I just want to know if a
program to be compiled by a conformant compiler needs to be careful with
argv[0].