liberdm/src/erdminternal.c File Reference

#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "erdminternal.h"

Go to the source code of this file.

Functions

void erDmGetArgs (char *pChar, erDmCmd_t *pCmd, int nReqArgs)


Function Documentation

void erDmGetArgs ( char *  pChar,
erDmCmd_t pCmd,
int  nReqArgs 
)

Copyright (C) 2005-2008 iRex Technologies B.V. All rights reserved.

Definition at line 30 of file erdminternal.c.

00031 {
00032     int     nArg;
00033     int     i;
00034     char    szToken[DM_MAXCHARONLINE];
00035 
00036     for (nArg = 0; nArg < nReqArgs; nArg++)
00037     {
00038         i = 0;
00039         while (*pChar != '\0')
00040         {
00041             szToken[i] = '\0';
00042             if (*pChar == ',')
00043             {
00044                 pChar++;
00045                 break;
00046             }
00047             szToken[i] = *pChar++;
00048             i++;
00049             szToken[i] = '\0';
00050         }
00051         strcpy(pCmd->arg[nArg], szToken);
00052     }
00053 }


Generated on Sun Dec 14 17:11:29 2008 by  doxygen 1.5.6