Mercurial > hg > Members > kono > nitros9-code
diff 3rdparty/packages/ed/gettxt.c @ 994:bef1844de0dc
The ED editor ported from Minix
author | roug |
---|---|
date | Sun, 23 Feb 2003 21:11:37 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/3rdparty/packages/ed/gettxt.c Sun Feb 23 21:11:37 2003 +0000 @@ -0,0 +1,18 @@ +/* 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); +} +