Lines Matching refs:reason
36 shortenReason(char *reason) in shortenReason() argument
41 if (strncmp(reason,"%%[",3) == 0) in shortenReason()
42 reason += 3; in shortenReason()
44 while (*reason == ' ') in shortenReason()
45 reason++; in shortenReason()
49 if (strncmp(reason,pe,peLen) == 0) in shortenReason()
50 reason += peLen; in shortenReason()
52 if (((ptr = strchr(reason,']')) != NULL) && (strncmp(ptr,"]%%",3) == 0)) in shortenReason()
55 pe = reason + strlen(reason) -1; in shortenReason()
56 pe = reason; in shortenReason()
60 pe = reason + strlen(reason) -1; in shortenReason()
61 while ((pe > reason) && (*pe == ' ')) { in shortenReason()
65 return(reason); in shortenReason()
165 char *reason; in dial_problem() member
191 msg = Malloc(strlen(PREFIX) + strlen(p->reason) + 2); in dial_problem()
192 sprintf (msg, "%s%s\n", PREFIX, p->reason); in dial_problem()
204 strlen(PREFIX) + strlen(p->reason) + strlen(SUFFIX) + 2 in dial_problem()
206 sprintf (msg, "%s%s%s\n", PREFIX, p->reason, SUFFIX); in dial_problem()
212 load_str (&pps->dis_reason, p->reason); in dial_problem()