view 3rdparty/packages/ed/gettxt.c @ 1530:a02b18bfc376

New 'Old' fields added from OS-9 Level One V2.00.00 Addendum
author boisy
date Wed, 14 Apr 2004 13:35:50 +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);
}