473,804 Members | 3,932 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

source code for %e, %f and %g?

I can find source code in output.c for all the format specifications except
for the workings of %e, %f and %g (and also %E and %G).
Where is the source code for these functions?
If it is not included, does anyone know why not?
Nov 24 '05 #1
7 1110
Jonathan Wilson wrote:
I can find source code in output.c for all the format specifications
except for the workings of %e, %f and %g (and also %E and %G).
Where is the source code for these functions?


In VC7.1, I can see them on line 744 onwards. What version are you
looking at?

Tom
Nov 24 '05 #2
On Thu, 24 Nov 2005 22:13:07 +0800, Jonathan Wilson <jo****@tpgi.co m.au>
wrote:
I can find source code in output.c for all the format specifications except
for the workings of %e, %f and %g (and also %E and %G).
Where is the source code for these functions?
If it is not included, does anyone know why not?


AFAIK, MS has never provided source code for FP conversion routines or most
other FP stuff. I'm not sure why that is. Could be licensing issues, could
be that it's considered too valuable, etc.

--
Doug Harrison
Visual C++ MVP
Nov 24 '05 #3
Tom Widmer [VC++ MVP] wrote:
Jonathan Wilson wrote:
I can find source code in output.c for all the format specifications
except for the workings of %e, %f and %g (and also %E and %G).
Where is the source code for these functions?

In VC7.1, I can see them on line 744 onwards. What version are you
looking at?


Ahh, I can't find any code for the entries in the _cfltcvt_tab table,
which is what you are wanting I suppose.

Tom
Nov 24 '05 #4
"Jonathan Wilson" <jo****@tpgi.co m.au> wrote in message news:%2******** *******@TK2MSFT NGP10.phx.gbl.. .
I can find source code in output.c for all the format specifications except for the workings of %e, %f and %g (and also %E and
%G).
Where is the source code for these functions?


In any Linux distribution?

--PA
Nov 25 '05 #5
Doug Harrison [MVP] wrote:
On Thu, 24 Nov 2005 22:13:07 +0800, Jonathan Wilson <jo****@tpgi.co m.au>
wrote:

I can find source code in output.c for all the format specifications except
for the workings of %e, %f and %g (and also %E and %G).
Where is the source code for these functions?
If it is not included, does anyone know why not?

AFAIK, MS has never provided source code for FP conversion routines or most
other FP stuff. I'm not sure why that is. Could be licensing issues, could
be that it's considered too valuable, etc.

This is indeed due to licensing issues.

Ronald Laeremans
Visual C++ team
Nov 28 '05 #6
> This is indeed due to licensing issues.
I assume then that licencing issues are why other pieces of code (e.g.
exception handling code) are also missing...
Nov 29 '05 #7
Jonathan Wilson wrote:
This is indeed due to licensing issues.

I assume then that licencing issues are why other pieces of code (e.g.
exception handling code) are also missing...


Yep.

-cd
Nov 29 '05 #8

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

Similar topics

5
3893
by: Tim Zhao | last post by:
I downloaded the PHP 5 source code from www.php.net web site. It is a tar compressed file. I used WinZip to unzip it. Now I got a whole bunch of files. But I do not know to read these files. Do I use Visual Studio, or any other IDE tools? Or do I must use a text editor to open each file individually to view it?
9
5342
by: FISH | last post by:
Ever have one of those days when you're not sure if it's you who's gone mad, or the rest of the world? I have an Open Source project on SourceForge for communication with YSMG - Yahoo's IM protocol. I keep the project source in three directories, based upon the code's function: one for the network API code itself, one for the support APIs (basic chat spam filtering, Swing models, rich text decoders, etc), and one for the test client...
115
14200
by: TheAd | last post by:
At this moment I use MsAccess and i can build about every databound application i want. Who knows about a serious open source alternative? Because Windows will be a client platform for some time, i prefer a solution that (also) supports Windows. On the net I found a number of products that i looked at, but none of them gave me the impression of a serious candidate at this moment (KNoda, Gnome DB Manager, InterBase...). 2 additional...
4
2506
by: kj | last post by:
I consider myself quite proficient in C and a few other programming languages, but I have never succeeded in understanding a largish program (such as zsh or ncurses) at the source level. Basically, I quickly become disoriented, losing sight of the forest for the trees. What's your approach for understanding a large program at the source level? By "understanding a program" I mean more than just figuring out where to zero in to make a...
15
5091
by: Fady Anwar | last post by:
Hi while browsing the net i noticed that there is sites publishing some software that claim that it can decompile .net applications i didn't bleave it in fact but after trying it i was surprised that i could retrieve my code from my applications after i compile it so i need to know to prevent this from happening to my applications Thanx in advance
8
2247
by: Alvo von Cossel I | last post by:
hey everybody, I have written a great browser but it is missing a feature (quite a lot actually, but forget about them for now). that feature just so happens to be the View > Source function. for those of you who don't what i mean, it is when you click a button in the view menu that says Page source (in Netscape) and source (in Internet Explorer). if you click it, notepad opens. in that window is the html for the page. anyway, does...
7
1560
by: Tina | last post by:
In 1.1 I used to use a WebControlLibrary to hold code I didn't want to expose when I distributed a component. The code would compile to a separate dll and could not be viewed when used in a vs.net project. That worked fine and I assume it will still work fine in 2.0. However, in 2.0 I tried to use a simple Class library project that also compiles to a separate dll. However when I distribute the dll, the source code is still visible...
66
7477
by: Jon Skeet [C# MVP] | last post by:
I'm sure the net will be buzzing with this news fairly soon, but just in case anyone hasn't seen it yet: Microsoft are going to make the source code for the .NET framework (parts of it, including the BCL, ASP.NET and LINQ) available both for viewing and debugging into. I won't go into all the details here, as they're covered on Scott Guthrie's blog:
4
2227
by: Spizzat2 | last post by:
I'm trying to figure out a workaround to a minor annoyance that I'm coming up with while coding a site. I've got some keyboard shortcuts set up for the site via javascript, and when I press escape, it's set to hide several divs on the page, and remove focus from a link. Unfortunately, I don't know which link will have focus, so I can't just blur a particular element (that I'm aware of) since I won't know which element it is. I got it...
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10577
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10332
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10077
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7620
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5521
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4299
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.