_vsnprintf questions

This is a discussion on _vsnprintf questions within the C++ Programming forums, part of the General Programming Boards category; Hi all , Are there any restrictions on the buffer size when using the above function? My debugger screams when ...

  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    2

    _vsnprintf questions

    Hi all ,

    Are there any restrictions on the buffer size when using the above function?

    My debugger screams when the size is bigger then 6648

    anyone ?

    Thanks

  2. #2
    Super Moderator Harbinger's Avatar
    Join Date
    Nov 2004
    Posts
    74
    > Are there any restrictions on the buffer size when using the above function?
    So long as you don't lie about the size.

    Perhaps you trashed memory somewhere else, and here is where you get to notice that there has been some past mistake..

  3. #3
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    what compiler are you using and what is the error message? Also post the function that is calling _vsnprintf .

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    _vsnprintf is an MSVC function.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. questions....so many questions about random numbers....
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 07-30-2009, 08:47 AM
  2. A very long list of questions... maybe to long...
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-16-2007, 05:36 AM
  3. Several Questions, main one is about protected memory
    By Tron 9000 in forum C Programming
    Replies: 3
    Last Post: 06-02-2005, 07:42 AM
  4. Trivial questions - what to do?
    By Aerie in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 12-26-2004, 08:44 AM
  5. questions questions questions.....
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-14-2001, 07:22 AM

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