Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

_lcmaps_utils.h File Reference

Internal header for the LCMAPS utilities. More...

#include "lcmaps_utils.h"

Go to the source code of this file.

OTHER FUNCTIONS

int lcmaps_tokenize (const char *command, char **args, int *n, char *sep)
 Break the argument string up into tokens.


Detailed Description

Internal header for the LCMAPS utilities.

Author:
Martijn Steenbakkers for the EU DataGrid.
This header contains the declarations of the LCMAPS utility functions:
  1. lcmaps_tokenize():

Definition in file _lcmaps_utils.h.


Function Documentation

lcmaps_tokenize const char *  command,
char **  args,
int *  n,
char *  sep
 

Break the argument string up into tokens.

Breakup the command in to arguments, pointing the args array at the tokens. Replace white space at the end of each token with a null. A token maybe in quotes. (Copied (and modified) from GLOBUS gatekeeper.c)

Parameters:
command the command line to be parsed
args pointer to an array of pointers to be filled
n size of the array, on input, and set to size used on output
sep string of separating characters
Return values:
0 succes
-1 malloc error
-2 too many args
-3 quote not matched

Definition at line 292 of file lcmaps_utils.c.

Referenced by lcmaps_setup(), and parse_args_plugin().


Generated on Sun May 29 21:22:12 2005 for lcmaps by doxygen 1.3.5