Lines Matching refs:Buffer
251 * PARAMETERS: Buffer - Where to return the command line
252 * BufferLength - Maximum length of Buffer
266 char *Buffer,
280 /* Always clear the line buffer before we read a new line */
282 memset (Buffer, 0, BufferLength);
303 /* Echo the character (at EOL) and copy it to the line buffer */
308 Buffer[EndOfLine] = (char) InputChar;
312 Buffer[EndOfLine] = 0;
316 /* Insert character into the middle of the buffer */
318 memmove (&Buffer[CursorPosition + 1], &Buffer[CursorPosition],
321 Buffer [CursorPosition] = (char) InputChar;
322 Buffer [EndOfLine + 1] = 0;
326 fprintf (stdout, "%s", &Buffer[CursorPosition]);
357 memmove (&Buffer[CursorPosition - 1], &Buffer[CursorPosition],
363 fprintf (stdout, "%s ", &Buffer[CursorPosition - 1]);
386 /* Echo, terminate string buffer, and exit */
389 Buffer[EndOfLine] = 0;
436 fprintf (stdout, "%s", Buffer);
472 strcpy (Buffer, NextCommand);
473 fprintf (stdout, "%s", Buffer);
474 EndOfLine = CursorPosition = strlen (Buffer);
518 strcpy (Buffer, NextCommand);
519 fprintf (stdout, "%s", Buffer);
520 EndOfLine = CursorPosition = strlen (Buffer);