12 for (
int i=0; i < msglen; i++)
54 for (
int ix =0; ix < oldmaximum_position; ix++) n[ix] =
oBuffer[ix];
70 int remainingLength =
pos;
88 for (
int i=0; i<*
length; i++) *s++ = *c++;
96 if ( ( s =
strnstr(c,remainingLength,
"|A" , 2) ) )
98 sscanf (s+2,
"%d", &mp->
type);
103 if ( ( s =
strnstr(c,remainingLength,
"|B" , 2) ) )
105 sscanf (s+2,
"%d", &mp->
source);
110 if ( ( s =
strnstr(c,remainingLength,
"|C" , 2) ) )
117 if ( ( s =
strnstr(c,remainingLength,
"|D" , 2) ) )
124 if ( ( s =
strnstr(c,remainingLength,
"|E" , 2) ) )
131 if ( ( s =
strnstr(c,remainingLength,
"|F" , 2) ) )
138 if ( ( s =
strnstr(c,remainingLength,
"|G" , 2) ) )
140 src =
strnstr(c,remainingLength,
"|>",2);
141 srcmsglen = (src - (s +2) );
152 remainingLength =
pos;
165 for (
int i=0; i<*
length; i++) *s++ = *c++;
176 char *timestr = ctime(&tp.time);
177 int length = strlen(timestr);
185 #if defined(LVL2_WINNT) || defined(STREAMBUF_NEW_IOSTREAM)
187 for (
int ix =0; ix < length-1; ix++)
194 for (
int ix =0; ix < length-1; ix++)
195 sb->overflow( *cc++ );
205 va_start (ap,format);
207 vsprintf (x,format,ap);
209 if (x[strlen(x)-1] ==
'\n') x[strlen(x)-1] =
'\0';