string.c revision 186507a7cf6e4b4155e9ef89631777a96633ac0e
0N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
60N/A left_align++;
0N/A while (transfer_count-- > 0)
if (sign)
else if (l_count > 0)
if (sign)
if (sign)
else if (h_count > 0)
if (sign)
sign = 0;
if (width > 0) {
width--;
sp--;
int any = 0;
c = *bs++;
if (any++ == 0)
ADDCHAR(c);
if (any) {
bufp--;
bufp[0] = c;
else if (buflen != 0)
return (buflen);
#if defined(_BOOT)
s1--;
return (os1);
if (*sp == (char)c)
return ((char *)sp);
} while (*sp++);
return (NULL);
static const char charmap[] = {
return (os1);
return (os1);
char *r = NULL;
if (*sp == (char)c)
r = (char *)sp;
} while (*sp++);
const char *tptr;
return ((char *)s1);
c = *s2;
while (*s1)
if (*s1++ == c) {
c = *s2;
return (NULL);
return ((char *)string);
} while (*string++);
return (NULL);
--s1;
return (os1);
df++;
if (len == 0)
return (slen);
return (slen);
return (q - string);
static char *savept;
if (p == NULL)
return (NULL);
return (NULL);
savept = ++r;
strlen(const char *s)
size_t n = 0;
#ifdef _KERNEL
#define IS_ALPHA(c) \
int c = *id++;
while ((c = *id++) != 0) {
ASSERT(n > 0);
while (s < end && ((c = *(++s)) != 0)) {