GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LATC / V9-1-2 > LATC_parser / sun-gcc
#include "LATC/XML.h"
#include "LATC/lrd.h"
#include "args_p.h"
#include "msg_init_p.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "MSG/MSG_pubdefs.h"
#include "PBS/MBA.h"
Functions | |
void | print_usage (FILE *fp) |
Print out a usage block. | |
int | check_args (int argc, char **argv) |
Check that all the command line arguments are known, are unique and that any required arguments are present. | |
int | main (int argc, char **argv) |
int check_args | ( | int | argc, | |
char ** | argv | |||
) |
Check that all the command line arguments are known, are unique and that any required arguments are present.
argc | Number of command line arguments | |
argv | Array of command line arguments |
0 | Command line arguments meet requirements | |
-1 | Unknown argument found on the list | |
-2 | Missing input argument | |
-3 | Missing output argument | |
-4 | Repeated input argument | |
-5 | Repeated output argument | |
-6 | Repeated filter argument |
References print_usage().
Referenced by main().
int main | ( | int | argc, | |
char ** | argv | |||
) |
argc | Number of command-line arguments | |
argv | List of command line arguments |
0 | Success | |
-1 | Unknown argument found on the list | |
-2 | Missing input argument | |
-3 | Missing output argument | |
-4 | Repeated input argument | |
-5 | Repeated output argument | |
-6 | Repeated filter argument | |
-7 | No input files specified | |
-8 | Memory allocation error | |
-9 | Parser failed. |
References check_args(), filter_collect(), input_collect(), input_count(), msg_init(), output_collect(), print_usage(), and verbose_collect().
void print_usage | ( | FILE * | fp | ) |
Print out a usage block.
fp | Pointer to destination file |
Referenced by check_args(), and main().