home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QBasic & Borland Pascal & C
/
Delphi5.iso
/
C
/
Samples
/
CSAPE32.ARJ
/
SOURCE
/
CSSRC
/
SDPULLLT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-03-28
|
968b
|
47 lines
/*
sdpulllt.c
% sed_PullLeft
C-scape 3.2
Copyright (c) 1986, 1987, by Oakland Group, Inc.
ALL RIGHTS RESERVED.
Revision History:
-----------------
11/06/86 jmd Now returns the deleted character.
11/16/86 sng Now handles variable-length fields.
11/18/87 jmd changed names of some low-level funcs
5/11/88 jmd moved work to field_PullLeft
3/24/89 jmd added sed_ macros
3/28/90 jmd ansi-fied
*/
#include "sed.h"
#include "fldpriv.h"
char sed_PullLeft(sed_type sed)
/*
modifies: the sed.
effects: deletes the current character, pulls in the characters to the
left:
| helxlo mom|
^
| hello mom|
^
returns: the deleted character
*/
{
char del_char;
cs_Assert(sed_Ok(sed), CS_SD_PULL_SED, 0);
del_char = menu_PullLeft(sed_GetMenu(sed), sed_GetFieldNo(sed), sed_GetRecordPos(sed));
sd_refresh_field(sed, sed_GetFieldNo(sed));
return(del_char);
}