version 1.9, 1999/12/06 22:18:56 |
version 1.10, 1999/12/06 22:24:32 |
|
|
|
|
if ((m = strchr(pat, '%')) != NULL) { |
if ((m = strchr(pat, '%')) != NULL) { |
/* Copy the prefix */ |
/* Copy the prefix */ |
Buf_AddBytes(buf, m - pat, (Byte *) pat); |
Buf_AddChars(buf, m - pat, pat); |
/* skip the % */ |
/* skip the % */ |
pat = m + 1; |
pat = m + 1; |
} |
} |
|
|
/* Copy the pattern */ |
/* Copy the pattern */ |
Buf_AddBytes(buf, len, (Byte *) src); |
Buf_AddChars(buf, len, src); |
|
|
/* append the rest */ |
/* append the rest */ |
Buf_AddBytes(buf, strlen(pat), (Byte *) pat); |
Buf_AddChars(buf, strlen(pat), pat); |
} |
} |
|
|
char * |
char * |