| 86 | } |
| 87 | |
| 88 | void xml_set_command_line(const int argc, char **argv) |
| 89 | { |
| 90 | int i; |
| 91 | int len=argc; |
| 92 | if(command_line!=NULL) |
| 93 | return ; |
| 94 | /* Capture the command line */ |
| 95 | for(i=0; i<argc; i++) |
| 96 | { |
| 97 | len+=strlen(argv[i]); |
| 98 | } |
| 99 | command_line = (char *)MALLOC(len); |
| 100 | command_line[0]='\0'; |
| 101 | for(i=0; i<argc; i++) |
| 102 | { |
| 103 | if(i>0) |
| 104 | strcat(command_line," "); |
| 105 | strcat(command_line, argv[i]); |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | void xml_clear_command_line(void) |
| 110 | { |