J
JanWhitney
I am learning C++, so please be kind. Is there anywhere that I can
view the source code for the toUpper function? Thanks.
view the source code for the toUpper function? Thanks.
I am learning C++, so please be kind. Is there anywhere that I can
view the source code for the toUpper function? Thanks.
I am learning C++, so please be kind. Is there anywhere that I can
view the source code for the toUpper function? Thanks.
I am learning C++, so please be kind. Is there anywhere that I can
view the source code for the toUpper function? Thanks.
Salt_Peter said:Never heard of toUpper.
Take a look at ctype.h for a C answer and note that toupper(...)
becomes std::toupper(...) according to <cctype>.
Default said:How likely is that to give the OP the source code for the function?
Salt_Peter said:It should, it does here.
And since C++ nor C are proprietary, hidden
implementations, if its not found there on his platform, it most
certainly will be found elsewhere.
Default said:It does? Where is "here"? I've not seen source code for library
functions in headers in any implementation I've ever used.
Say what? The implementations more certainly are proprietary, and are
often not distributed. Where did you get the idea that it was otherwise?
Salt_Peter said:I said proprietary + hidden as in MFC/ATL etc where the source is
tucked away in object files. The source for toupper as well as the
rest of the C++ language might certainly be copyrighted, but hidden
it is most definitely not. Unless you happen to come accross some
implementation i've not seen.
Default said:Well, I use Visual C++, and I don't believe they provide the
implementation. Libraries are the usual method. Some do provide the
source files, which allows the implementation to be built, but it's
certainly not required (and not typically found in headers anyway).
Noah said:But you can always get it from an open source implementation and since
toupper is pretty trivial and has a fairly limited set of reasonable
implementations it should be pretty close to whatever closed source
version you're using.
Default said:Yes, which is what I recommended in the first place. Actually, a search
on the drive holding VC++ finds a TOUPPER.C file, which says:
*Purpose:
* Defines function versions of _toupper() and toupper().
So looks like it does provide at least some source.
Noah said:I think you get all the source with VS. You need it to view source
when debugging or you just end up stepping off the assembler cliff.
I am learning C++, so please be kind. Is there anywhere that I can
view the source code for the toUpper function? Thanks.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.