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

_lcmaps_utils.h

Go to the documentation of this file.
00001 /*                                                                                                            
00002  * Copyright (c) Members of the EGEE Collaboration. 2004.
00003  * See http://eu-egee.org/partners/ for details on the copyright holders.
00004  * For license conditions see the license file or
00005  * http://eu-egee.org/license.html
00006  */
00007 
00008 /*                                                                                                            
00009  * Copyright (c) 2001 EU DataGrid.                                                                             
00010  * For license conditions see http://www.eu-datagrid.org/license.html                                          
00011  *
00012  * Copyright (c) 2001, 2002 by 
00013  *     Martijn Steenbakkers <martijn@nikhef.nl>,
00014  *     David Groep <davidg@nikhef.nl>,
00015  *     NIKHEF Amsterdam, the Netherlands
00016  */
00017 
00028 #ifndef _LCMAPS_UTILS_H
00029 #define _LCMAPS_UTILS_H
00030 
00031 /******************************************************************************
00032                              Include header files
00033 ******************************************************************************/
00034 #include "lcmaps_utils.h"
00035 
00036 /******************************************************************************
00037  *                            Module definition
00038  *****************************************************************************/
00039 
00040 /******************************************************************************
00041         OTHER STUFF
00042 ******************************************************************************/
00044  /* Beginning of other functions */
00045 /******************************************************************************
00046 Function:   lcmaps_tokenize() (in modified form from globus_gatekeeper_utils.c)
00047 
00048 Description:
00049     Breakup the command in to args, pointing the args array
00050     at the tokens. Replace white space at the end of each
00051     token with a null. A token maybe in quotes. 
00052 
00053 Parameters:
00054     command: The command line to be parsed.
00055     args:    A pointer to an array of pointers to be filled it
00056     n:       Size of the array, on input, and set to size used on output. 
00057     sep:     string of separating characters
00058 
00059 Returns:
00060     0 on success. 
00061     -1 on to malloc
00062     -2 on to many args
00063     -3 on quote not matched
00064 ******************************************************************************/
00065 extern int lcmaps_tokenize(
00066         const char * command, 
00067         char ** args,
00068         int * n,
00069         char * sep
00070 ); /* End of other functions */
00072 
00073 #endif /* _LCMAPS_UTILS_H */
00074 
00075 /******************************************************************************
00076 CVS Information:
00077     $Source: /cvs/jra1mw/org.glite.security.lcmaps/src/pluginmanager/_lcmaps_utils.h,v $
00078     $Date: 2004/12/02 17:14:22 $
00079     $Revision: 1.4 $
00080     $Author: msteenba $
00081 ******************************************************************************/

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