home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QBasic & Borland Pascal & C
/
Delphi5.iso
/
C
/
Samples
/
CSAPE32.ARJ
/
SOURCE
/
CSSRC
/
TBSETMAX.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-03-28
|
535b
|
36 lines
/*
tbsetmax.c
% tb_SetMaxSize
C-scape 3.2
Copyright (c) 1988 by Oakland Group, Inc.
ALL RIGHTS RESERVED.
Revision History:
---------------------
6/10/88 jdc created
7/06/89 jdc size == 0 now turns off limiting
3/28/90 jmd ansi-fied
*/
#include "textbuf.h"
int tb_SetMaxSize(tb_type tb, long size)
{
int ret = TRUE;
if ( size <= 0L ) {
tb->limit = FALSE;
}
else if ( size < tb->size ) {
ret = FALSE;
}
else {
tb->max_size = size;
tb->limit = TRUE;
}
return(ret);
}