view 3rdparty/packages/ed/gettxt.c @ 2444:597d98fc261e

RFM: never say die
author aaronwolfe
date Fri, 26 Feb 2010 05:24:46 +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);
}