TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Neil Heller
from: Bill Birrell
date: 2003-08-08 00:13:04
subject: getopt()

Hi Neil,

 > The only problem I can tell is that there's no
 > equivalent in the C
 > language to the assembler CLI.  That doesn't leave
 > much of a choice.

    You are right. The Command Line Interpreter is an operating system
function (originally of CP/M), not a C function. You can make your own very
easily in C by using argc and argv, and parsing the commands. A big switch
should do most of it.

    There is an obvious ambiguity when CLI means "clear
interrupts" in inline assembly in C, but in DOS speak it just means
Command.com (which can be called as a subroutine in a C program by at least
two, often three methods).

Best Wishes,
Bill.

---
* Origin: Escan BBS (2:25/200)
SEEN-BY: 633/267 270
@PATH: 25/200 108 252/110 250/501 140/1 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.