Lines Matching refs:cp
735 char tmp[SYS_NMLN], *cp;
761 for (cp = ruaddr, j = 0; j < 4; j++, cp++)
762 if ((cp = strchr(cp, '.')) == NULL)
765 if (cp != NULL)
766 *--cp = '\0'; /* null out the dot after the IP addr */
774 /* We know cp is not NULL due to the check above */
775 *cp = '.'; /* Put the dot back in the IP addr */
810 for (cp = uaddr, j = 0; j < 4; j++, cp++)
811 cp = strchr(cp, '.');
812 (void) strlcat(tmp, --cp, sizeof (tmp));