do_arg 2647 src/simh/scp.c char cbuf[4*CBUFSIZE], gbuf[CBUFSIZE], abuf[4*CBUFSIZE], quote, *c, *do_arg[11]; do_arg 2671 src/simh/scp.c do_arg[10] = NULL; /* make sure the argument list always ends with a NULL */ do_arg 2676 src/simh/scp.c do_arg [nargs++] = NULL; /* null argument */ do_arg 2681 src/simh/scp.c do_arg[nargs++] = c; /* save start */ do_arg 2689 src/simh/scp.c if (do_arg [0] == NULL) /* need at least 1 */ do_arg 2691 src/simh/scp.c if ((fpin = fopen (do_arg[0], "r")) == NULL) { /* file failed to open? */ do_arg 2692 src/simh/scp.c strcat (strcpy (cbuf, do_arg[0]), ".ini"); /* try again with .ini extension */ do_arg 2695 src/simh/scp.c fprintf (stderr, "Can't open file %s\n", do_arg[0]); do_arg 2723 src/simh/scp.c strcpy( sim_do_filename[sim_do_depth], do_arg[0]); /* stash away do file name for possible use by 'call' command */ do_arg 2746 src/simh/scp.c sim_sub_args (cbuf, sizeof(cbuf), do_arg); /* substitute args */ do_arg 2900 src/simh/scp.c void sim_sub_args (char *instr, size_t instr_size, char *do_arg[]) do_arg 2939 src/simh/scp.c ap = do_arg[ip[1] - '0']; do_arg 2941 src/simh/scp.c if (do_arg[i] == NULL) { do_arg 2951 src/simh/scp.c if (do_arg[i] == NULL) do_arg 2954 src/simh/scp.c if ((sizeof(rbuf)-strlen(rbuf)) < (2 + strlen(do_arg[i]))) { do_arg 2955 src/simh/scp.c if (strchr(do_arg[i], ' ')) { /* need to surround this argument with quotes */ do_arg 2957 src/simh/scp.c if (strchr(do_arg[i], quote)) do_arg 2959 src/simh/scp.c sprintf(&rbuf[strlen(rbuf)], "%s%c%s%c\"", (i != 1) ? " " : "", quote, do_arg[i], quote); do_arg 2962 src/simh/scp.c sprintf(&rbuf[strlen(rbuf)], "%s%s", (i != 1) ? " " : "", do_arg[i]); do_arg 169 src/simh/scp.h void sim_sub_args (char *in_str, size_t in_str_size, char *do_arg[]);