Passing String to Function



I'm sure this is newbie but I've done some searching on this and
haven't found the exact same situation. Basically, I'm trying to pass a
string to a function where it get's built up (it's supposed to be a
where clause for a a database query) and in the called function it
get's built up with malloc as necessary. The problem is, I can't get it
to have the proper value when it comes back to the called function.
Initially, it's just a pointer to char. Can anyone point me to an FAQ
or some such ? Thanks...

.



Relevant Pages

  • Re: Passing String to Function
    ... >I'm sure this is newbie but I've done some searching on this and ... >haven't found the exact same situation. ... >string to a function where it get's built up ...
    (comp.lang.c)
  • Re: Passing String to Function
    ... haven't found the exact same situation. ... I'm trying to pass a string to a function where it get's built up and in the called function it get's built up with malloc as necessary. ... You might find this FAQ useful though: http://c-faq.com/ptrs/passptrinit.html ...
    (comp.lang.c)
  • Re: OT: Iraqi elections
    ... > length of string from one corner to the opposing corner, ... the ancient pyramids of Egypt could only have been built by aliens were: ... * To join/leave the list, search archives, change list settings, * ...
    (comp.sys.hp.mpe)
  • Re: OT: Iraqi elections
    ... > length of string from one corner to the opposing corner, ... the ancient pyramids of Egypt could only have been built by aliens were: ... You simply flood it and fill in the low spots and level off the high areas. ...
    (comp.sys.hp.mpe)
  • Re: Try this with Google
    ... > you can find what you are searching for ... which is built on top of a DOS, ... which is built on top of a BIOS, ... than working from Gentoo instructions down. ...
    (sci.physics)