Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (ptr + j) {
- if (*(ptr + j)[0] == '{') {
- keep = true;
- }
- if (testFn(*(ptr + j))) { /* test for last char */
- string[i][j - p] = concat(*pString1, *(ptr + j));
- keep = false;
- free(*pString1);
- goto mylabel;
- }
- if (keep) {
- *pString1 = concat(*pString1, *(ptr + j));
- *pString1 = concat(*pString1, " ");
- p++;
- } else {
- b1 = false;
- int q = j;
- for (e = 0; *(ptr + q + e); e++) { /* step through the string */
- b1 = true;
- if (*(ptr + e + q)) {
- *pString = concat(*pString, *(ptr + e + q));
- *pString = concat(*pString, " ");
- }
- j = e;
- }
- if (makeArgs(*pString, &argc, (const char ***) &argv, pipe, i, h)) {
- write_command(&w, argv, string[w]);
- w++;
- } else {
- if (!b1) { /* no args (?) */
- for (int r = 0; argv[r] != NULL; r++) {
- string[i][r] = argv[r]; /* is this necessary? */
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement