delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/08/06/12:45:05

From: Sterten AT aol DOT com
Message-ID: <95.e77c4c9.28a021e2@aol.com>
Date: Mon, 6 Aug 2001 12:37:54 EDT
Subject: Re: command tail
To: eliz AT is DOT elta DOT co DOT il
CC: djgpp AT delorie DOT com
MIME-Version: 1.0
X-Mailer: AOL 3.0 16-bit for Windows sub 60
Reply-To: djgpp AT delorie DOT com

 >On 5 Aug 2001, Sterten wrote:
 >
 >> how can I get the command tail in DOS-gcc203-compiled programs ?
 >> 
 >> I mean, not what argv[] makes from it, but the exact characters
 >> that were printed in the command line.

Eli replied:
 
 >Like this:
 >
 >    #include <sys/movedata.h>
 >    #include <sys/segments.h>
 >    #include <stubinfo.h>
 >
 >    char doscmd[128];
 >    movedata(_stubinfo->psp_selector, 128, _my_ds(), (int)doscmd, 128);

yes, thanks. It works.You're always there with an answer :-)
Although it will probably not compile with other compilers :-(

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019