Category : C Source Code
Archive   : C-ALL.ZIP
Filename : TI800.ASC

 
Output of file : TI800.ASC contained in archive : C-ALL.ZIP








PRODUCT : C++ NUMBER : 800
VERSION : All
OS : PC DOS
DATE : September 11, 1991 PAGE : 1/1
TITLE : Don't Overlook argv[0]!




The declaration

int main (int argc, char *argv[]) {

is a familiar sight. What you may not know is that argv[0] is a
small treasure. It is the name of the program that is running.
It also contains the path of the program. For instance, if it is
necessary to know the path from which an exceuting program was
invoked, use the fnsplit() function to extract the path from
argv[0]. You can also find out if the program has been renamed
after it was compiled.








































  3 Responses to “Category : C Source Code
Archive   : C-ALL.ZIP
Filename : TI800.ASC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/