--- Roland Smith <[EMAIL PROTECTED]> wrote:
> On Sun, May 04, 2008 at 08:34:30AM -0700, Unga
> wrote:
> >
> > --- Roland Smith <[EMAIL PROTECTED]> wrote:
> >
> > > On Sun, May 04, 2008 at 07:02:36AM -0700,
> Patrick
> > > Clochesy wrote:
> > > > What about using a macro (...) in front of the
>
On Sun, May 04, 2008 at 08:34:30AM -0700, Unga wrote:
>
> --- Roland Smith <[EMAIL PROTECTED]> wrote:
>
> > On Sun, May 04, 2008 at 07:02:36AM -0700, Patrick
> > Clochesy wrote:
> > > What about using a macro (...) in front of the
> > function to csll it which
> > > passes __VARARGS__, NULL to e
--- Roland Smith <[EMAIL PROTECTED]> wrote:
> On Sun, May 04, 2008 at 07:02:36AM -0700, Patrick
> Clochesy wrote:
> > What about using a macro (...) in front of the
> function to csll it which
> > passes __VARARGS__, NULL to ensure there is always
> a trailing NULL? I think
> > this would at le
On Sun, May 04, 2008 at 07:02:36AM -0700, Patrick Clochesy wrote:
> What about using a macro (...) in front of the function to csll it which
> passes __VARARGS__, NULL to ensure there is always a trailing NULL? I think
> this would at least work in GCC... Can' test on my phone though.
That's a g
What about using a macro (...) in front of the function to csll it
which passes __VARARGS__, NULL to ensure there is always a trailing
NULL? I think this would at least work in GCC... Can' test on my phone
though.
-Patrick
On May 4, 2008, at 4:42 AM, Peter Boosten <[EMAIL PROTECTED]> wrote
Unga wrote:
Hi all
I need to implement a variable argument function in C.
The number of args are not known but the type is
known, all are strings.
Unfortunately va_arg() [stdarg(3)] does not return
NULL or any other suitable value after processing the
arg list, it just simply crashes once the a
On Sun, May 04, 2008 at 04:01:39AM -0700, Unga wrote:
> > > Unfortunately va_arg() [stdarg(3)] does not return
> > > NULL or any other suitable value after processing
> > the
> > > arg list, it just simply crashes once the arg list
> > is
> > > exhausted.
> >
> > It is _your_ task to properly clos
--- Roland Smith <[EMAIL PROTECTED]> wrote:
> On Sun, May 04, 2008 at 12:40:43AM -0700, Unga
> wrote:
> > Hi all
> >
> > I need to implement a variable argument function
> in C.
> > The number of args are not known but the type is
> > known, all are strings.
> >
> > Unfortunately va_arg() [stda
On Sun, May 04, 2008 at 12:40:43AM -0700, Unga wrote:
> Hi all
>
> I need to implement a variable argument function in C.
> The number of args are not known but the type is
> known, all are strings.
>
> Unfortunately va_arg() [stdarg(3)] does not return
> NULL or any other suitable value after pr
Hi all
I need to implement a variable argument function in C.
The number of args are not known but the type is
known, all are strings.
Unfortunately va_arg() [stdarg(3)] does not return
NULL or any other suitable value after processing the
arg list, it just simply crashes once the arg list is
exh
10 matches
Mail list logo