Function argument question

Stanley Friesen friesen at psivax.UUCP
Tue Aug 13 06:36:52 AEST 1985


In article <555 at brl-tgr.ARPA> ART at acc.ARPA (Art Berggreen) writes:
>
>
>One way to approach this is to pass a pointer to the char pointer in
>the function call.  You can then update the char pointer before the
>function returns, and the return value of the function can be the
>integer.
>
	Another approach is to pass the function a second argument,
a pointer to an int for the numeric result and actually *return*
the new char pointer. This avoids using a pointer to a pointer.
-- 

				Sarima (Stanley Friesen)

{trwrb|allegra|cbosgd|hplabs|ihnp4|aero!uscvax!akgua}!sdcrdcf!psivax!friesen
or {ttdica|quad1|bellcore|scgvaxd}!psivax!friesen



More information about the Comp.lang.c mailing list