Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.
Date: 2011apr12 Platform: Windows Language: C/C++ Q. Where is _sntprintf(...) defined? A. In tchar.h So do:#include <tchar.h> // For _sntprintf ... char buf; _sntprintf(buf, sizeof(buf), _T("%d.%d.%d.%d"), 1, 2, 3, 4);
Add a commentSign in to add a comment