view 3rdparty/packages/ed/gettxt.c @ 1340:63bfe1e5c5f4

Rodney added several additional codes that can be generated from the keyboard. ($7F, $1D-$1F)
author boisy
date Sat, 13 Sep 2003 17:59:00 +0000
parents bef1844de0dc
children
line wrap: on
line source

/*      gettxt.c        */
#include <stdio.h>
#include "tools.h"
#include "ed.h"

char *
 gettxt(num)
int num;
{
  LINE *lin;
  static char txtbuf[MAXLINE];

  lin = getptr(num);
  strcpy(txtbuf, lin->l_buff);
  strcat(txtbuf, "\n");
  return(txtbuf);
}