home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QBasic & Borland Pascal & C
/
Delphi5.iso
/
C
/
Samples
/
CSAPE32.ARJ
/
SOURCE
/
CSSRC
/
TEDLINE.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-03-28
|
482b
|
36 lines
/*
tedline.c
% ted_line
C-scape 3.2
Copyright (c) 1988, by Oakland Group, Inc.
ALL RIGHTS RESERVED.
Revision History:
-----------------
3/24/89 jmd added sed_ macros
3/28/90 jmd ansi-fied
*/
#include "ted.h"
int ted_line(sed_type sed, int mode)
{
tb_type tb;
tb = sed_GetTextbuf(sed);
if (tb->bbc->b->row != sed_GetCRow(sed)) {
return(0);
}
if (mode == TED_LEN) {
return(tb->len);
}
else {
return(tb->nend);
}
}