Lines Matching defs:ptr
578 char *ptr;
587 ptr = &buf[0];
589 SkipSpace(ptr);
591 if ((*ptr == '$' && (*(ptr+1) == ' ' || *(ptr+1) == '\t')) ||
592 ((*ptr == '\n') && inmsg == FALSE)) {
597 if (strncmp(ptr, SET_TOKEN, sizeof (SET_TOKEN) - 1) == 0) {
598 if (sscanf(ptr, "%*s %d", &setid) != 1) {
603 } else if (strncmp(ptr, DELSET_TOKEN,
605 if (sscanf(ptr, "%*s %d", &unsetid) != 1) {
610 } else if (strncmp(ptr, QUOTE_TOKEN,
612 if (sscanf(ptr, "%*s %c", &c) != 1) {
625 if (is_bs_terminated(ptr)) {
626 (void) strlcat(msg, ptr, sizeof (msg));
629 int len = strlen(ptr);
630 *(ptr + len - 1) = '\0';
631 if (c && (*(ptr + len - 2) == c)) {
632 *(ptr + len - 2) = '\0';
634 (void) strlcat(msg, ptr, sizeof (msg));
641 if (isdigit((unsigned char)*ptr)) {
644 SkipSpace(ptr);
646 msgid = (int)strtol(ptr, &pptr, 10);
647 ptr = pptr;
649 SkipSpace(ptr);
651 if (is_bs_terminated(ptr)) {
653 if (c && (*ptr == c)) {
654 ptr++;
656 (void) strlcpy(msg, ptr, sizeof (msg));
659 int len = strlen(ptr);
660 *(ptr + len - 1) = '\0';
661 if (c && ((*ptr == c) &&
662 (*(ptr + len - 2) == c))) {
663 *(ptr + len - 2) = '\0';
664 ptr++;
666 add_msg(setid, msgid, ptr, file, line, TRUE);