#include <stdio.h>#include <stddef.h>#include <stdlib.h>#include <string.h>#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#include <unistd.h>#include "eripcclient.h"

Go to the source code of this file.
Functions | |
| void | erIpcGetArgs (char *pChar, erIpcCmd_t *pCmd, int nReqArgs) |
| void erIpcGetArgs | ( | char * | pChar, | |
| erIpcCmd_t * | pCmd, | |||
| int | nReqArgs | |||
| ) |
Copyright (C) 2005-2008 iRex Technologies B.V. All rights reserved.
Definition at line 25 of file eripcparser.c.
00026 { 00027 int nArg; 00028 int i; 00029 char szToken[TB_MAXCHARONLINE]; 00030 00031 for (nArg = 0; nArg < nReqArgs; nArg++) 00032 { 00033 i = 0; 00034 while (*pChar != '\0') 00035 { 00036 szToken[i] = '\0'; 00037 if (*pChar == ',') 00038 { 00039 pChar++; 00040 break; 00041 } 00042 szToken[i] = *pChar++; 00043 i++; 00044 szToken[i] = '\0'; 00045 } 00046 strcpy(pCmd->arg[nArg], szToken); 00047 } 00048 }
1.5.6