Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!techunix.BITNET!ssreefc From: ssreefc@techunix.BITNET (florin coter) Newsgroups: comp.lang.c Subject: line args in (TURBO) C Keywords: argc, argv Message-ID: <8038@techunix.BITNET> Date: 16 Mar 89 13:06:03 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: Technion - Israel Inst. Tech., Haifa Israel Lines: 25 hello world, i refer here to a letter (i don't recall the signature) about line arguments with TURBO C. the point is that nobody explained the bug. i believe the following to be the true thing(sorry for the words,i am NOT a computer man...) disregarding the operation sysytem the program receives the line arguments, but can access them only if declared. the arguments are ALWAYS passed 1. argc 2. &argv[0][0] 3. &argv[0][1] 3. ........ now, if one declares main( **argv ) {} what will get will be argc under THE NAME argv[0][0]. consequently, this is not TURBO dependant... i ferified this with Microsoft C 3.1, Turbo C 1.5, Mix C 1.1... fc. -------- Florin Coter Home address: 40/37 Leon Blum St., Haifa, Israel. Home phone: 04-386133. Office address: Solid State Institute, Technion, Haifa 3200, Israel. Office phone: 04-293938/293613/293615.