function wiht dynamic parameters (f(int i,...) )

This is a discussion on function wiht dynamic parameters (f(int i,...) ) within the C Programming forums, part of the General Programming Boards category; hi i need to write a function similar to printf, that takes several fix values and the takes a variable ...

  1. #1
    Registered User stormbringer's Avatar
    Join Date
    Jul 2002
    Posts
    90

    function wiht dynamic parameters (f(int i,...) )

    hi

    i need to write a function similar to printf, that takes several fix values and the takes a variable number of arguments. I already found out, that the declaration look like this:

    int function(cahr *, int, ...);

    However, i need information how to work with the additional parameters.
    i read somewhere, that this is compiler specific. I use VC++ 6 (programming in c, not c++)
    Does anyone know where to find Documentation about this? Google wasn't on my side (could be because i don't know exactly what to look for)

    thanks

  2. #2

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. Function Parameters Corrupt
    By cecomp64 in forum C Programming
    Replies: 6
    Last Post: 07-11-2008, 11:33 AM
  3. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 01:28 PM
  4. Bisection Method function value at root incorrect
    By mr_glass in forum C Programming
    Replies: 3
    Last Post: 11-10-2005, 08:10 AM
  5. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21