[NTLUG:Discuss] OT C question

Rusty Haddock rusty at fe2o3.lonestar.org
Tue Sep 27 22:52:15 CDT 2005


Fred James wrote:
    >All
    >My brain must be fried, but I just don't see why this
    >
    >/*   foo.c   */
    >#include <stdio.h>
    >int main(int argc, char *argv) {

The second arg to main() should be char **argv or char *argv[].
Use one of those and yer program runs just fine.

	-Rusty-
-- 
   _____        Rusty Haddock  =  KD4WLZ  =  rusty at fe2o3.lonestar.org
|\/   o \   o  **Out yonder in the Van Alstyne (TX) Metropolitan Area**
|   (  -<  O o              Microsoft is to software what
|/\__V__/                  McDonalds is to gourmet cooking




More information about the Discuss mailing list