Searched defs:cp (Results 1 - 25 of 1313) sorted by relevance

1234567891011>>

/freebsd-head/contrib/ntp/sntp/libopts/compat/
H A Dstrdup.c11 char *cp; local
16 cp = (char *) AGALOC((unsigned) (strlen(s)+1), "strdup");
18 if (cp != NULL)
19 (void) strcpy(cp, s);
21 return cp;
/freebsd-head/contrib/tcp_wrappers/
H A Dpercent_m.c28 char *cp = ibuf; local
30 while (*bp = *cp)
31 if (*cp == '%' && cp[1] == 'm') {
38 cp += 2;
40 bp++, cp++;
H A Dsetenv.c26 char *cp; local
30 if ((cp = malloc(strlen(name) + strlen(value) + 2)) == 0)
32 sprintf(cp, "%s=%s", name, value);
33 return (putenv(cp));
H A Dvfprintf.c30 register char *cp; local
38 for (cp = format; *cp; cp++) {
39 if (*cp != '%') {
40 putc(*cp, fp); /* ordinary character */
57 *fmtp++ = *cp++;
58 if (*cp == '-') /* left-adjusted field? */
59 *fmtp++ = *cp++;
60 if (*cp
[all...]
/freebsd-head/crypto/heimdal/lib/roken/
H A Dinet_aton.c42 inet_aton(const char *cp, struct in_addr *addr) argument
44 addr->s_addr = inet_addr(cp);
/freebsd-head/contrib/ntp/libntp/
H A Datouint.c23 const char *cp; local
25 cp = str;
26 if ('\0' == *cp)
30 while ('\0' != *cp) {
31 if (!isdigit((unsigned char)*cp))
33 if (u > 429496729 || (u == 429496729 && *cp >= '6'))
37 u += *cp++ - '0'; /* not '\0' */
H A Dhextoint.c17 register const char *cp; local
19 cp = str;
21 if (*cp == '\0')
25 while (*cp != '\0') {
26 if (!isxdigit((unsigned char)*cp))
31 if ('0' <= *cp && *cp <= '9')
32 u += *cp++ - '0';
33 else if ('a' <= *cp && *cp <
[all...]
H A Docttoint.c18 register const char *cp; local
20 cp = str;
22 if (*cp == '\0')
26 while (*cp != '\0') {
27 if (!isdigit((unsigned char)*cp) || *cp == '8' || *cp == '9')
32 u += *cp++ - '0'; /* ascii dependent */
H A Dstrdup.c17 char * cp; local
21 if ((cp = malloc(octets)) == NULL)
23 memcpy(cp, s, octets);
25 return cp;
H A Datoint.c18 register const char *cp; local
22 cp = str;
24 if (*cp == '-') {
25 cp++;
33 if (*cp == '\0')
37 while (*cp != '\0') {
38 if (!isdigit((unsigned char)*cp))
40 if (u > 214748364 || (u == 214748364 && *cp > oflow_digit))
43 u += *cp++ - '0'; /* ascii dependent */
H A Dfindconfig.c20 char hostname[BUFSIZ], *cp; local
39 cp = unamebuf.machine + 5;
41 cp = unamebuf.machine;
42 snprintf(result, sizeof(result), "%s/default.%s", base, cp);
H A Dmstolfp.c17 register const char *cp; local
34 cp = str;
35 while (isspace((unsigned char)*cp))
36 cp++;
38 if (*cp == '-') {
40 cp++;
43 if (*cp != '.' && !isdigit((unsigned char)*cp))
50 cpdec = cp;
58 if ((cpdec - cp) >
[all...]
/freebsd-head/usr.bin/mail/
H A Dtemp.c54 char *cp; local
61 cp = tmpdir + strlen(tmpdir) - 1;
62 while (cp > tmpdir && *cp == '/') {
63 *cp = '\0';
64 cp--;
75 if ((cp = username()) == NULL) {
80 myname = savestr(cp);
82 if ((cp = getenv("HOME")) == NULL || *cp
[all...]
/freebsd-head/lib/libc/string/
H A Dwcscat.c44 wchar_t *cp; local
46 cp = s1;
47 while (*cp != L'\0')
48 cp++;
49 while ((*cp++ = *s2++) != L'\0')
H A Dwcscpy.c44 wchar_t *cp; local
46 cp = s1;
47 while ((*cp++ = *s2++) != L'\0')
H A Dmemrchr.c30 const unsigned char *cp; local
33 cp = (unsigned char *)s + n;
35 if (*(--cp) == (unsigned char)c)
36 return((void *)cp);
/freebsd-head/sys/libkern/
H A Dstrchr.c39 strchr(const char *cp, int ch) argument
43 p = __DECONST(char *, cp);
H A Dstrrchr.c39 strrchr(const char *cp, int ch) argument
43 p = __DECONST(char *, cp);
H A Dscanc.c40 scanc(u_int size, const u_char *cp, const u_char table[], int mask0) argument
46 for (end = &cp[size]; cp < end; ++cp) {
47 if (table[*cp] & mask)
50 return (end - cp);
/freebsd-head/crypto/openssh/openbsd-compat/
H A Dstrnlen.c30 const char *cp; local
32 for (cp = str; maxlen != 0 && *cp != '\0'; cp++, maxlen--)
35 return (size_t)(cp - str);
/freebsd-head/contrib/mandoc/
H A Dtest-strcasestr.c7 char *cp = strcasestr(big, "Gst"); local
8 return cp != big + 2;
/freebsd-head/stand/libsa/
H A Din_cksum.c58 u_char *cp = p; local
63 sum += v + *cp++;
66 if (((long)cp & 1) == 0) {
68 sum += *(u_short *)cp;
69 cp += 2;
74 sum += *cp++ << 8;
75 sum += *cp++;
77 sum += *cp++;
78 sum += *cp++ << 8;
84 v = *cp <<
[all...]
/freebsd-head/usr.bin/ctags/
H A Dlisp.c56 char *cp; local
82 for (cp = lbp; *cp && *cp != '\n'; ++cp)
84 *cp = EOS;
86 if (!(cp = strchr(lbp, ')')))
88 for (; cp >= lbp && *cp != ':'; --cp)
[all...]
H A Dprint.c58 char *cp; local
63 for (cp = lbuf; GETC(!=, EOF) && c != '\n'; *cp++ = c)
70 else for (cnt = 0, cp = lbuf; GETC(!=, EOF) && cnt < ENDLINE; ++cnt) {
74 *cp++ = '\\'; *cp++ = '\\';
80 *cp++ = '\\'; *cp++ = c;
84 *cp++ = '$'; /* can find whole line */
88 *cp
[all...]
/freebsd-head/contrib/vis/
H A Dfoldit.c47 const char *cp; local
54 cp = chunk;
55 while (*cp) {
56 switch(*cp) {
75 cp++;

Completed in 316 milliseconds

1234567891011>>