original files of m241

This commit is contained in:
neelimap
2026-07-30 11:19:44 +05:30
parent 170c2b3f3a
commit afc7070c1f
12254 changed files with 7655111 additions and 0 deletions
@@ -0,0 +1,99 @@
/*
******************************************************************************
* HEADER FILE
*
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipcom_strlib.h,v $ $Revision: 1.11 $
* $Source: /home/interpeak/CVSRoot/ipcom/include/ipcom_strlib.h,v $
* $Author: rime $ $Date: 2009-09-07 15:41:23 $
* $State: Exp $ $Locker: $
*
* INTERPEAK_COPYRIGHT_STRING
* Design and implementation by Roger Boden <roger@interpeak.se>
******************************************************************************
*/
#ifndef IPCOM_STRLIB_H
#define IPCOM_STRLIB_H
/*
****************************************************************************
* 1 DESCRIPTION
****************************************************************************
*/
/*
****************************************************************************
* 2 CONFIGURATION
****************************************************************************
*/
#include "ipcom_config.h"
/*
****************************************************************************
* 3 INCLUDE FILES
****************************************************************************
*/
#include "ipcom_type.h"
#include "ipcom_cstyle.h"
#ifdef __cplusplus
extern "C" {
#endif
/*
****************************************************************************
* 4 DEFINES
****************************************************************************
*/
/*
****************************************************************************
* 5 TYPES
****************************************************************************
*/
/*
****************************************************************************
* 6 FUNCTIONS
****************************************************************************
*/
/*
*===========================================================================
* ipcom_parse_argstr
*===========================================================================
* Description:
* Parses a string to an argc/argv array. Arguments containing a space must
* be enclosed by ' characters, e.g. 'a space'.
*
* Parameters:
* arg_str: the string to parse. This string is modified.
* argc: updated to hold the number of arguments in argv
* argv: an array of pointers to the arguments. The pointers
* actually points into the modified arg_str. The
* array is NULL terminated.
* Returns:
* IPCOM_ERR_FAILED - Failed to parse the string.
* IPCOM_ERR_INVALID_ARG - Badly matched escape characters.
* IPCOM_SUCCESS - The string has been successfully parsed.
*
* If successful, the argv array must be freed by the caller.
* If failed, the values of argc and argv are undefined.
*/
IP_PUBLIC Ip_err ipcom_parse_argstr(char *arg_str, int *argc, char ***argv);
IP_PUBLIC char *ipcom_str_in_list(char *str, char *list);
#ifdef __cplusplus
}
#endif
#endif
/*
****************************************************************************
* END OF FILE
****************************************************************************
*/