Lines Matching refs:cp
612 static int gettchar(register const char *cp)
614 if(*cp==0)
616 if(cp[1]==0)
617 return((unsigned)cp[0]);
618 if(*cp=='^' && cp[1] && cp[2]==0)
620 switch(cp[1])
625 return(cntl(cp[1]));
628 if(streq(cp,"undef") || streq(cp,"<undef>"))
630 return(*((unsigned char*)cp));
637 char *cp;
639 while(cp = *argv++)
642 if(*cp=='-')
644 cp++;
647 if(!(tp=lookup(cp)) || (off && (tp->type!=BIT) && (tp->type!=TABS)))
648 error(ERROR_exit(1),"%s: unknown mode",cp);
653 error(ERROR_exit(1),"%s: unknown mode",cp);
655 error(ERROR_exit(1),"missing argument to %s",cp);
701 if(!(cp= *argv))
707 n=strtol(cp,&cp,10);
708 if(*cp)
720 cp = *argv;
721 if (!cp)
732 c = (int)strtol(cp, &ep, 10);
734 error(ERROR_exit(1), "%s: %s: numeric argument expected", tp->name, cp);
751 error(ERROR_exit(1), "%s: %s: invalid speed", tp->name, cp);