I am trying to write a variable argument function on SUN solaris. According to MSDN, the _vscprintf function that I'm using on windows should work on unix as ANSI is listed.
_vscprintf<stdio.h>ANSI, Win 98, Win Me, Win NT, Win 2000, Win XP
However, including stdio.h doesn't seem to help. Is this function located in some other header file on unix?
Recommended Answers
Jump to Post>should work on unix as ANSI is listed.
_vscprintf isn't a standard C function. It's a Microsoft extension that is unlikely to work on Unix.
Jump to Post>So their indication of ANSI means nothing?
They're probably talking about naming conventions, not strict standard conformance.>Any alternative way to find out the length of the string so that I can properly allocate memory?
Not easily. You would have to resize the buffer as you go. But since …
All 8 Replies
Narue
5,707
Bad Cop
Team Colleague
winbatch
7
Posting Pro in Training
Narue
5,707
Bad Cop
Team Colleague
winbatch
7
Posting Pro in Training
Narue
5,707
Bad Cop
Team Colleague
winbatch
7
Posting Pro in Training
Narue
5,707
Bad Cop
Team Colleague
noormanman
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.