Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 114 of file batch.c.
Referenced by Batch().
{ LPTSTR dp = (LPTSTR)cmd_alloc ((_tcslen(s1) + _tcslen(s2) + 3) * sizeof (TCHAR)); /* JPP 20-Jul-1998 added error checking */ if (dp == NULL) { error_out_of_memory(); return NULL; } if (s1 && *s1) { s1 = _stpcpy (dp, s1); *s1++ = _T('\0'); } else s1 = dp; while (*s2) { BOOL inquotes = FALSE; /* Find next parameter */ while (_istspace(*s2) || (*s2 && _tcschr(_T(",;="), *s2))) s2++; if (!*s2) break; /* Copy it */ do { if (!inquotes && (_istspace(*s2) || _tcschr(_T(",;="), *s2))) break; inquotes ^= (*s2 == _T('"')); *s1++ = *s2++; } while (*s2); *s1++ = _T('\0'); } *s1 = _T('\0'); return dp; }