CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: fn(...)

  1. #1
    Join Date
    Mar 2000
    Location
    Oxford, UK.
    Posts
    352

    Talking fn(...)

    What is this ... thing and how to you access it in the function body?

    Code:
    void fn(...)
    {
    
    
    }

  2. #2
    Join Date
    Apr 1999
    Location
    Altrincham, England
    Posts
    4,470
    It's for variable argument lists. If you're using C++, then try to avoid ever using it. If you're using C, then try to avoid ever using it, but if you have to then look up VA_ARGS.
    Correct is better than fast. Simple is better than complex. Clear is better than cute. Safe is better than insecure.
    --
    Sutter and Alexandrescu, C++ Coding Standards

    Programs must be written for people to read, and only incidentally for machines to execute.

    --
    Harold Abelson and Gerald Jay Sussman

    The cheapest, fastest and most reliable components of a computer system are those that aren't there.
    -- Gordon Bell


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured