Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 (Fortune 01.1b1); site graffiti.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!ut-sally!ut-ngp!shell!graffiti!peter From: peter@graffiti.UUCP (Peter da Silva) Newsgroups: net.lang.c,net.unix-wizards Subject: Re: Re: how has C bitten you? Message-ID: <161@graffiti.UUCP> Date: Tue, 3-Sep-85 07:44:52 EDT Article-I.D.: graffiti.161 Posted: Tue Sep 3 07:44:52 1985 Date-Received: Tue, 10-Sep-85 03:37:13 EDT References: <302@brl-tgr.ARPA> <471@baylor.UUCP>, <148@chinet.UUCP> <607@bu-cs.UUCP> <2737@sun.uucp> Organization: The Power Elite, Houston, TX Lines: 15 Xref: watmath net.lang.c:6299 net.unix-wizards:14770 > > Not really a bite, but I remember when I was first learning C > > I was quite bewildered by the fact that you couldn't really > > declare your own 'argv', that is, you couldn't declare an > > array of pointers to fixed length buffers except perhaps by: > > > > char *myargv[] = { > > "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", > > "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", > > What are you talking about? char *myargv[5] = { "/bin/sh", "sh", "-c", "echo 'well it worked'", NULL }; What's so holy about this?