lxcmd() Subroutine

Issues an Editor command and any parameters from a C program.

Library:
LPEXAPI.H
Include File:
LPEXAPI.H

C Syntax

int lxcmd(unsigned char *Command); 

Parameter

Command 
A single string containing the command and any parameters to be issued.

Description

The lxcmd subroutine provides a way of issuing an Editor command from a C program. It is passed one parameter, which is a string containing the command (with any parameters) to be issued.

Examples

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

Return Value

The return value is the return code from the Editor.


Building External Commands Written in the C Language
lxcall() Subroutine