lxcall() Subroutine

Calls an Editor command with a separate parameter string.

Library:
LPEXAPI.H
Include File:
LPEXAPI.H

C Syntax

int lxcall(unsigned char *Command, unsigned char * ParameterString); 

Parameters

Command 
The command name
ParameterString 
The parameters for the command

Description

The lxcall subroutine provides a way of issuing an Editor command from a C program. It passes two parameters: the first parameter is the command name, and the second is the parameter string for the command.

Examples

  1. To issue the insert command, type:
    lxcall("insert", "this is a new element");
  2. To issue the find command, type:
    lxcall("find", "up asis line");
  3. To issue the next command, type:
    lxcall("next", "word");

Return Value

The return value is the return code from the Editor.


Building External Commands Written in the C Language
lxcmd() Subroutine.