Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

options.c File Reference


Detailed Description

This file provide a function for the loading of some useful parameters from a simple configuration file.

The file MUST be like the drive.ini file distributed with this package. The row order is uninfluent, but the keywords specified must preceed their values and the types must be correct. If the ini file can't be opened, some default values will be assigned as showed in the following extern variables section.

Author:
Sandro Bonazzola.

#include "drive.h"

Include dependency graph for options.c:

Include dependency graph

Functions

int iniload (char *iniFileName)
 Loads DRIVE options from a given file.

int getDriveCommandLineOptions (int argc, char **argv)
 Read command line options.


Function Documentation

int getDriveCommandLineOptions int  argc,
char **  argv
 

Read command line options.

Parameters:
argc the number of arguments, like in main function.
argv the array of command line options string.
Returns:
an integer: 0 if all is done right.

int iniload char *  iniFileName  ) 
 

Loads DRIVE options from a given file.

Returns:
0 if success, -1 if fails.
Parameters:
iniFileName the path of the ini file.


SourceForge.net Logo

Generated on Mon Jun 14 17:25:56 2004 for D.R.I.V.E. by doxygen 1.3.7