![]() |
![]() HP OpenVMS Systemsask the wizard |
![]() |
The Question is: PROGRAM: When I try to use "argc/argv" in my program I cannot get the arguments are case insensetive and revert to lowercase unless I "quote" them. How do you leave the case intact when passing arguments to a program with out quoting them. #include <stdio.h> void main(int argc, char **argv) printf("You passed me [%s]\n",argv[1]); $ main ARGUMENT You passed me [argument] $ MAIN "ARGUMENT" You passed me [ARGUMENT] The Answer is : The behaviour described is the expected behaviour -- DCL upcases all user input, then C downcases the options before passing them along to the program. Quoting the string is the appropriate mechanism to bypass the alterations. There is no other mechanism available to disable the DCL upcase or the C downcase -- OpenVMS commands are not case-sensitive.
|