comp.lang.c
[Top] [All Lists]

Re: Strings and arrays

Subject: Re: Strings and arrays
From: Ben Bacarisse
Date: Fri, 28 Mar 2008 22:59:45 +0000
Newsgroups: comp.lang.c

Jim <jim.moneytime@xxxxxxxxx> writes:
<snip unrelated stuff>

> I am trying to pass an array of strings into the function.

OK.  Such a parameter will be a 'char **s_array' or, if you want to
make the arrayness more obvious, 'char *s_array[]'.  The calling
function will declare a 'char *stings[SIZE];' object and pass that.

-- 
Ben.

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy