Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: hmm

From: John-Mark Gurney <jmg(at)nike.efn.org>
Date: Thu Feb 20 1997 - 02:50:14 EST


On Thu, 20 Feb 1997, Guido van Rooij wrote:

> > > It seems a bit strange to me. Just like the first part of the line

but as someone pointed out... with a direct exec it can be otherwise... I just wrote a couple programs that proved this... here's the output: number args: 3

argv[0} len(0):
argv[1} len(6): parama
argv[2} len(6): paramb

basicly the program I ran did:
char *strings[] = { "", "parama", "paramb", 0}; execv("dump", strings);

and dump was a program that did basicly: for(i=0;i<argc;i++)

    printf("argv[%d} len(%d): %s\n", i, strlen(argv[i]), argv[i]);

so it is possible...

and thanks for making me do the research... always helpful to learn by experience this sort of thing... :) ttyl...

Do you need help?X

John-Mark

gurney_j@efn.org
http://resnet.uoregon.edu/~gurney_j/
Modem/FAX: (541) 683-6954 (FreeBSD Box)

Live in Peace, destroy Micro$oft, support free software, run FreeBSD (unix) Received on Wed Feb 19 23:50:40 1997

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 12:41:02 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library