Lines Matching refs:cur
96 char *cmdline = NULL, *cur;
112 cur = cmdline;
114 while ((*cur == ' ') || (*cur == '\t')) cur++;
116 while ((*cur != ' ') && (*cur != '\t') &&
117 (*cur != '\n') && (*cur != '\r')) {
118 if (*cur == 0)
120 command[i++] = *cur++;
133 while ((*cur == ' ') || (*cur == '\t')) cur++;
135 while ((*cur != '\n') && (*cur != '\r') && (*cur != 0)) {
136 if (*cur == 0)
138 arg[i++] = *cur++;
149 cur = arg;
151 while (*cur != 0) {
152 while ((*cur == ' ') || (*cur == '\t')) cur++;
153 if (*cur == '\'') {
154 cur++;
155 argv[i] = cur;
156 while ((*cur != 0) && (*cur != '\'')) cur++;
157 if (*cur == '\'') {
158 *cur = 0;
161 cur++;
163 } else if (*cur == '"') {
164 cur++;
165 argv[i] = cur;
166 while ((*cur != 0) && (*cur != '"')) cur++;
167 if (*cur == '"') {
168 *cur = 0;
171 cur++;
174 argv[i] = cur;
175 while ((*cur != 0) && (*cur != ' ') && (*cur != '\t'))
176 cur++;
177 *cur = 0;
180 cur++;