Newer
Older
os = s;
while((*s++ = *t++) != 0)
;
return os;
for(n = 0; s[n]; n++)
;
return n;
}
while(n-- > 0)
*d++ = c;
return dst;
}
for(; *s; s++)
if(*s == c)
return (char*) s;
cc = read(0, &c, 1);
if(cc < 1)
break;
if(c == '\n' || c == '\r')
break;
}
buf[i] = '\0';
return buf;
}
int
atoi(const char *s)
{
int n;
n = 0;
while('0' <= *s && *s <= '9')
n = n*10 + *s++ - '0';
return n;
}