Lines Matching refs:ap
218 register char *ap; local
229 arg = ap = argv[i];
231 if (*ap++ != '-' || *ap == EOS)
236 c = *ap++; /* Option byte */
252 while (*ap != EOS && *ap != '=')
253 ap++;
254 if (*ap == EOS)
255 ap = "1";
257 *ap++ = EOS;
262 dp->repl = savestring(ap);
271 AddInclude( ap ); /* BP, 11.09.91 */
280 if (0 != (isdatum = (*ap != '*'))) /* If it's just -S, */
283 ap++; /* Step over '*' */
286 while (sizp->bits != endtest && *ap != EOS) {
287 if (!isdigit(*ap)) { /* Skip to next digit */
288 ap++;
292 while (isdigit(*ap)) {
294 size += (*ap++ - '0');
304 else if (*ap != EOS)
305 cwarn("-S, too many values, \"%s\" unused", ap);
312 if (defendel(ap, TRUE) == NULL)
313 cwarn("\"%s\" wasn't defined", ap);
318 debug = (isdigit(*ap)) ? atoi(ap) : 1;
428 zap_uc(char* ap) argument
435 while (*ap != EOS) {
439 if (*ap >= 'a' && *ap <= 'z')
440 *ap = (char)toupper(*ap);
441 ap++;
536 register char *ap; /* Argument pointer */ local
543 switch (*(ap = argv[i])) {
545 if (freopen(++ap, "r", stdin) == NULL) {
546 perror(ap); /* Can't find file */
552 if (*++ap == '>') { /* >>file */
562 if (access(++ap, 2) == 0) {
563 if (freopen(ap, "a", stdout) != NULL)
565 perror(ap); /* Error, can't append */
576 if ((file = creat(ap, 0, "rat=cr", "rfm=var")) == -1
578 perror(ap); /* Can't create file */
584 argv[j++] = ap; /* Not a redirector */