home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QBasic & Borland Pascal & C
/
Delphi5.iso
/
C
/
Samples
/
CSAPE32.ARJ
/
SOURCE
/
CSSRC
/
SDINCCHR.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-03-28
|
1KB
|
55 lines
/*
sdincchr.c
% sed_IncChar
C-scape 3.2
Copyright (c) 1986, 1987, by Oakland Group, Inc.
ALL RIGHTS RESERVED.
Revision History:
-----------------
11/05/86 jmd converted to boolean
11/18/87 jmd changed names of some low-level funcs
4/11/88 jmd added scrollable field handling
3/24/89 jmd added sed_ macros
3/28/90 jmd ansi-fied
*/
#include "sed.h"
boolean sed_IncChar(sed_type sed)
/*
requires: sed object.
modifies: same.
effects: goes to the next character in the field. doesn't wrap
around.
*/
{
int i;
cs_Assert(sed_Ok(sed), CS_SD_IC_SED, 0);
if (sed_GetRecordPos(sed) == NO_WRITEABLES) {
return(FALSE);
}
else {
i = menu_GetNextFieldPos(sed_GetMenu(sed), sed_GetFieldNo(sed), sed_GetRecordPos(sed));
if (i == AT_END) {
return(FALSE);
}
else {
if (sd_goto_char(sed, i)) {
/* field scrolled, repaint it */
sd_refresh_field(sed, sed_GetFieldNo(sed));
}
}
}
return(TRUE);
}