Lines Matching defs:s
78 case 's':
134 next(struct string *s)
138 if(s->max) {
139 if(s->last++ < s->max)
140 return(s->last);
141 s->max = s->last = 0;
143 if(s->last && *s->p=='-') {
144 (void)nextc(s);
145 s->max = nextc(s);
146 if(s->max==0) {
147 s->p--;
150 if(s->max < s->last) {
151 s->last = s->max-1;
156 return(s->last = nextc(s));
160 nextc(struct string *s)
164 c = *s->p++;
167 while(i<3 && (c = *s->p)>='0' && c<='7') {
170 s->p++;
173 else c = *s->p++;
175 if(c==0) *--s->p = 0;