src/oasis.c
void split_argument(char *argument, char *tag)
{
  char *tmp = argument, *ttag = tag, *wrt = argument;
  int i;
  
  for (i = 0; *tmp; tmp++, i++) {
    if (*tmp != ' ' && *tmp != '=')
      *(ttag++) = *tmp;
    else if (*tmp == '=')
      break;
  }
  
  *ttag = '\0';
  
  while (*tmp == '=' || *tmp == ' ')
    tmp++;
  
  while (*tmp)
    *(wrt++) = *(tmp++);
  
  *wrt = '\0';
}
/*
 * This function is an exact duplicate of the tag_argument function found in
 * one of the ascii patches located on the circlemud ftp website.
 */
This function is an exact duplicate of the tag_argument function found in
one of the ascii patches located on the circlemud ftp website.
This function is an exact duplicate of the tag_argument function found in one of the ascii patches located on the circlemud ftp website .
void split_argument(char *argument, char *tag)
{
  char *tmp = argument, *ttag = tag, *wrt = argument;
  int i;
  for (i = 0; *tmp; tmp++, i++) {
    if (*tmp != ' ' && *tmp != '=')
      *(ttag++) = *tmp;
    else if (*tmp == '=')
      break;
  }
  *ttag = '\0';
  while (*tmp == '=' || *tmp == ' ')
    tmp++;
  while (*tmp)
    *(wrt++) = *(tmp++);
  *wrt = '\0';
}
void split_argument ( char * argument , char * tag ) { char * tmp = argument , * ttag = tag , * wrt = argument ; int i ; for ( i = 0 ; * tmp ; tmp ++ , i ++ ) { if ( * tmp != ' ' && * tmp != ' ' ) * ( ttag ++ ) = * tmp ; else if ( * tmp == ' ' ) break ; } * ttag = ' \0 ' ; while ( * tmp == ' ' || * tmp == ' ' ) tmp ++ ; while ( * tmp ) * ( wrt ++ ) = * ( tmp ++ ) ; * wrt = ' \0 ' ; }
This function is an exact duplicate of the tag_argument function found in
 one of the ascii patches located on the circlemud ftp website.
This function is an exact duplicate of the tag_argument function found in one of the ascii patches located on the circlemud ftp website .