<br><br><div class="gmail_quote">On Tue, Sep 27, 2011 at 10:58 AM, John McCall <span dir="ltr"><<a href="mailto:rjmccall@apple.com">rjmccall@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word"><div><div class="im"><div>On Sep 27, 2011, at 10:35 AM, Matthieu Monrocq wrote:</div><blockquote type="cite"><div class="gmail_quote">2011/9/26 Thomas Gamper <span dir="ltr"><<a href="mailto:icicle@mail.cg.tuwien.ac.at" target="_blank">icicle@mail.cg.tuwien.ac.at</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
For whatever reason Microsoft is prefixing many standard POSIX<br>
functions with an underscore:<br>
<br>
<a href="http://msdn.microsoft.com/en-us/library/ybk95axf%28v=vs.80%29.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/ybk95axf%28v=vs.80%29.aspx</a><br>
<br>
int _sprintf_l(<br>
    char *buffer,<br>
    const char *format,<br>
    locale_t locale [,<br>
       argument] ...<br>
);<br>
<br>
I hope this helps,<br>
TOM<br></blockquote><div><br>Probably because such identifiers (leading underscore) are reserved for the implementation at global scope.</div></div></blockquote><div><br></div></div><div>No, identifiers are only reserved if they start with two underscores (__foo) or an underscore and a capital letter (_Foo).</div>
</div></div></blockquote><div><br></div><div>Those names are reserved universally, names begining with an underscore are reserved for the implementation in the global namespace. 17.6.4.3.2\1:</div><div><br></div><div><div>
Certain sets of names and function signatures are always reserved to the implementation:</div><div>— Each name that contains a double underscore _ _ or begins with an underscore followed by an uppercase</div><div>letter (2.12) is reserved to the implementation for any use.</div>
<div>— Each name that begins with an underscore is reserved to the implementation for use as a name in the</div><div>global namespace.</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word"><div><div class="im"><blockquote type="cite"><div class="gmail_quote"><div>The POSIX Standard "pollutes" the global namespace with identifiers that fall within userland therefore, while MSVC does not :)<br>
</div></div></blockquote></div></div><br><div>Only in the same sense that the C standard "pollutes" the global namespace with memcpy and malloc.</div></div></blockquote><div><br></div><div>Except those are documented names already in the standard.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word"><div>Anyway, doesn't really matter;  it's what they do.</div></div>
</blockquote><div><br></div><div>Right. </div></div>