<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>RE: [Proj] pj_init - C programming question</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Martin Thierer [<A HREF="mailto:thierer@web.de">mailto:thierer@web.de</A>] </FONT>
<BR><FONT SIZE=2>Sent: Thursday, May 19, 2005 3:01 AM</FONT>
<BR><FONT SIZE=2>To: proj@xserve.flids.com</FONT>
<BR><FONT SIZE=2>Subject: Re: [Proj] pj_init - C programming question</FONT>
</P>

<P><FONT SIZE=2>I'm not sure if I understand you, but this should work. If you make a constant </FONT>
<BR><FONT SIZE=2>array like shown in your code then what you get _is_ an array of char*. Maybe </FONT>
<BR><FONT SIZE=2>there's another reason why the initialization fails ?</FONT>
</P>

<P><FONT SIZE=2>Bye,</FONT>
</P>

<P><FONT SIZE=2>Martin</FONT>
</P>

<P><FONT SIZE=2>==================================</FONT>
</P>

<P><FONT SIZE=2>Yes, the code that was listed _does_ work. =)&nbsp; But it assumes that you know the projection parameter ahead of time and hence, can hard code them.</FONT></P>

<P><FONT SIZE=2>My question revolves around the situations when you _do not_ know what is the projection and its parameters ahead of time.</FONT></P>

<P><FONT SIZE=2>My approach would have been to dynamically allocate memory to char ** for an array of strings.</FONT>
</P>

<P><FONT SIZE=2>But when you call sizeof(), it returns the number of bytes for the pointer and _not_ the sizeof() the array of string pointers.</FONT></P>

<P><FONT SIZE=2>So essentially I'm trying to define the input and output projection and their parameters at run-time.</FONT>
</P>

<P><FONT SIZE=2>I hope this provides more clarification.</FONT>
</P>

<P><FONT SIZE=2>-- Kevin</FONT>
</P>

</BODY>
</HTML>