Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Need the opposite of stdarg
@ 1995-04-24  4:00 Steven W Orr
  1995-04-25  4:00 ` Steffen Kaiser
  0 siblings, 1 reply; 2+ messages in thread
From: Steven W Orr @ 1995-04-24  4:00 UTC (permalink / raw)


I have a problem that I don't know how to write in C.

I have a main program receiving an argv. The argv needs to be
massaged and then passed to a subroutine (FOO) which is not written in C.
(That's why we need the massage). I want to call FOO  in such
a way that it receives all of the massaged args. If I make my call
with a maximum number of args, then I'll always be sending too much,
and I will always have a limit. If I write a switch statement, then
my code will be potentially huge and I'll still have a limit.

If it makes any difference, I'm running OSF (DIGITAL Unix) on an AXP
(Alpha). Please respond by email. Thanks in advance.
-- 
----------Time flies like the wind. Fruit flies like a banana.----------------
--------Stranger things have happened but none stranger than this.-------------
Steven W. Orr      steveo@uniprise.com     <site of former bang addr:-)>
---------------"Listen to me! We are all individuals."-------------------------



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Need the opposite of stdarg
  1995-04-24  4:00 Need the opposite of stdarg Steven W Orr
@ 1995-04-25  4:00 ` Steffen Kaiser
  0 siblings, 0 replies; 2+ messages in thread
From: Steffen Kaiser @ 1995-04-25  4:00 UTC (permalink / raw)


>I have a main program receiving an argv. The argv needs to be
>massaged and then passed to a subroutine (FOO) which is not written in C.

If FOO would be in C, you could just pass the argv (or a temporary 
equivalent of it). FOO could determine the amount of arguments, by the 
terminating NULL. I think, it's the problem of FOO's language, not of C.
Are there no pointers available?



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-04-25  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-04-24  4:00 Need the opposite of stdarg Steven W Orr
1995-04-25  4:00 ` Steffen Kaiser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox