473,385 Members | 1,311 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

vprintf / va-arg on sttreams

Hi,

Does anyone know how to use the vprintf ( variable arguments ) routine on
c++ stream (ofstream for example ). Is there some class / library you can
use ?

regards

Johan
Jul 22 '05 #1
2 1558
Johan wrote:
Hi,

Does anyone know how to use the vprintf ( variable arguments )
routine on c++ stream (ofstream for example ). Is there some class /
library you can use ?


IIRC the only portable way is to print into a string (character buffer I
mean) with vsprintf and then print that formatted stuff. I might be
mistaken (and hope to be corrected then) but AFAIK the standard library has
no way to convert C++ streams to C FILE*.

--
Attila aka WW
Jul 22 '05 #2
"Johan" <me@knoware.nl> wrote...
Does anyone know how to use the vprintf ( variable arguments ) routine on
c++ stream (ofstream for example ).


What do you mean?

Victor
Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Gary Poster | last post by:
Please join us June 8, 7:30-9:00 PM, for the inaugural meeting of the Fredericksburg, VA Zope and Python User Group ("ZPUG"). Tres Seaver, architect of the Zope Content Management Framework, will...
0
by: Benji York | last post by:
When: July 13, 7:30-9:00 PM Where: Zope Corp offices (513 Prince Edward Street; Fredericksburg, VA 22408) Details at http://www.zope.org/Members/poster/fxbgzpug_announce_2 Hope to see you...
0
by: Benji York | last post by:
Please join us August 10, 7:30-9:00 PM, for the third meeting of the Fredericksburg, VA Zope and Python User Group ("ZPUG"). This meeting has four features of note. - Brian Lloyd, the author...
0
by: Benji York | last post by:
Please join us September 14, 7:30-9:00 PM, for the fourth meeting of the Fredericksburg, VA Zope and Python User Group ("ZPUG"). This meeting has three features of note. - Fred Drake, Zope...
0
by: Benji York | last post by:
Please join us November 9, 7:30-9:00 PM, for the sixth meeting of the Fredericksburg, VA Zope and Python User Group ("ZPUG"). Squid and Zope! Using Zope for newspaper publishing! The dangers of...
0
by: DosLaredos | last post by:
US-VA: Sr.Oracle ATS/Testing LoadRunner QuickTest Pro # 1129R1 Start Date: ASAP Duration: 1 Month++ Rate: $50-$60 DOE Expenses: PAID
0
by: Benji York | last post by:
Please join us January 11, 7:30-9:00 PM, for the seventh meeting of the Fredericksburg, VA Zope and Python User Group ("ZPUG"). Squid and Zope! Python and Zope roundtable! Free food! * Andrew...
5
by: Kavya | last post by:
What is the basic purpose of vscanf and vprintf? Can someone explain with small example?
28
by: Useful Info | last post by:
Like on 9/11, the Federal Government apparently WANTED people to die at the hands of Cho at VA Tech, because they told campus police not to pursue Cho after the double homicide occurred. Story...
1
by: premMS143 | last post by:
Can I connect 600 VA UPS for 2 PC's just for 10 min backup....? System1: P4 & 15" Colour Monitor System2: Pentium Dual Core, 19" LCD Monitor Shall I connect these 2 systems to a single 600 VA...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.