473,699 Members | 2,552 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

stdio.h ?

can "stdio.h" be OS specific at the kernal level or ? i know what I'm
trying to ask here but not sure how to word it :-)
--
Woodzy
http://www.rtdos.com/forum
Nov 14 '05
53 4526
> Prior to Visual C++ 7.0

Is it Visual Studio 2003?

Sorry, I only use the Windows DDK to build and eVC++ 4.0 as pure text editor
(similar to VC++ 6 aka VS98 but newer a bit). So, I don't know much about newer
Visual Studios. MS has different versioning for Visual Studio product, for
Visual C++ product and for CL compiler itself.

Also - can you name some template-related C++ features absent in VC6 aka VS98
aka CL 12.x?

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
ma***@storagecr aft.com
http://www.storagecraft.com
Nov 14 '05 #51
Maxim S. Shatskih wrote:
Prior to Visual C++ 7.0

Is it Visual Studio 2003?


7.0 is .NET 2002 and 7.1 is .NET 2003.
Also - can you name some template-related C++ features absent in VC6 aka VS98
aka CL 12.x?


I am not sure whether these features appeared in 7.0 or 7.1, but here
some I can think of right now:

.. partial specialization
.. argument-dependent lookup (ADL)
.. template template parameters
.. out-of-class member template definitions

Plus, many bugs ("internal compiler error") have been fixed and
conformance to the standard is quite correct. It compiles Boost and
Loki with no problem, while 6.0 was barely able to compile its own
standard library.
Jonathan
Nov 14 '05 #52
"Maxim S. Shatskih" wrote:
I am glad to hear this -- because it would be wrong.
'w' and 'b' are both standard C, as is "wb".
I saw Linux failing fopen() if "wb" is specified, so I considered
this to be Microsoftism.

From N869:


7.19.5.3 The fopen function

Synopsis

[#1]

#include <stdio.h>
FILE *fopen(const char * filename,
const char * mode);

Description

[#2] The fopen function opens the file whose name is the
string pointed to by filename, and associates a stream with
it.

[#3] The argument mode points to a string. If the string is
one of the following, the file is open in the indicated
mode. Otherwise, the behavior is undefined.214)

r open text file for reading
w truncate to zero length or create text file for
writing
a append; open or create text file for writing at
end-of-file
rb open binary file for reading
wb truncate to zero length or create binary file for
writing
ab append; open or create binary file for writing at
end-of-file
r+ open text file for update (reading and writing)
w+ truncate to zero length or create text file for
update
a+ append; open or create text file for update,
writing at end-of-file
r+b or rb+ open binary file for update (reading and writing)
w+b or wb+ truncate to zero length or create binary file
for update
a+b or ab+ append; open or create binary file for update,
writing at end-of-file

--
Chuck F (cb********@yah oo.com) (cb********@wor ldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home .att.net> USE worldnet address!
Nov 14 '05 #53
On 8 Mar 2005 23:08:10 GMT, ro******@ibd.nr c-cnrc.gc.ca (Walter
Roberson) wrote:
<snip>
If you are trying to find a language that says, "It's okay to
redefine the system library routines," then the only one I can think
of at the moment is Forth. LISP and Scheme too maybe.


Actually in Forth everything is a 'word' (dictionary entry) including
things that other languages (including C) consider 'primitive' like
add, dereference, IF-ELSE, etc., and you can redefine any word.
Similarly in LISP everything except for a few syntactic forms, and
AIUI in Scheme everything period, is just a named function, and (all
such) can be redefined.

Fortran allows you to (re)use the names of 'intrinsic' (library)
routines for your own subprograms if you explicitly declare them
EXTERNAL as opposed to INTRINSIC, and PL/I similarly if you declare
them ENTRY rather than BUILTIN, but this can not affect things like +
and DO. Fortran>=90, like C++, allows you to overload for user-defined
types the builtin computational operators and assignment (which unlike
C++ is not just an operator) but you cannot override the standard
meanings for builtin/basic types. F9X also allows you to create
entirely new operators, which you must of course define for all cases
(types) you want to handle.

Ada has hierarchical namespaces and you can use in your own
namespace(s) the same names that the standard routines use in the
standard namespaces, but this does not replace or even completely hide
the standard ones.
- David.Thompson1 at worldnet.att.ne t
Nov 14 '05 #54

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

Similar topics

2
2290
by: clusardi2k | last post by:
Hello, I'm trying to understand someone else code. The below compiles and works fine and dandy. #include <sys/types.h> #include "unistd.h" #include "stdio.h"
4
17091
by: Chad | last post by:
What purpose does __THROW serve in stdio.h. For example, in I see stuff like the following in stdio.h: /* Generate a temporary filename. */ extern char *tmpnam (char *__s) __THROW; __END_NAMESPACE_STD #ifdef __USE_MISC /* This is the reentrant variant of `tmpnam'. The only difference is that it does not allow S to be NULL. */
9
1725
by: sunway | last post by:
i have written a small program, it turns out to be wrong, while(read()!=EOF){ read(); read(); read(); } so,when read==EOF,the next read() will read a -1, and the program will go infinitely.
11
2766
by: talk | last post by:
hi,guy i have a question. are the functions in <stdio.h> system calls provided by operation system? if so, i want to know how C implements that we can call system calls by using the functions in <stdio.h>. i need your help, thanks a lot.
2
14568
by: david wolf | last post by:
My understanding is that cstdio basically is the same as stdio.h except the functions are in a namspace called std. However when I take a look at the content of the file cstdio, it has the following lines inside only: -------content of cstdio on red hat linux enterprise 3---- #ifndef __CSTDIO__ #define __CSTDIO__ #include <stdio.h> #endif
4
2981
by: SamG | last post by:
I have installed ubuntu 6.10 on my intel PC and when i try to write a small c code and compile it i get an error saying the is reference to stdio.h i checked /usr/include and /usr/local/include and i searched the whole system for stdio.h file but i was not able to find the file. My gcc is there but how come the stdio.h is not included. How to get around this problem, it seems non of the glibc include
17
8928
by: lak | last post by:
if i view stdio.h there are only symbolic constants. where is the definition of printf and scanf is available? i want to see the definition of printf and scanf and where it is stored?
1
1477
by: samoukos | last post by:
Hello i had to do this project but at school they tell me that it will be faster using stdio insteed of fstream... Is that right??? if it is faster can anyone suggest how this code will be using stdio???thank you???? here is the code: //Made by Samuel Johnson //email:sammojohn@gmail.com #include<iostream>
6
4873
by: hanaa | last post by:
Hello.. Is it okay to use functions such as setvbuf (that is defined in stdio.h) in a C++ program? I include stdio.h in the program and it works. Yet, I wonder if its okay.. stdio.h is a part of the standard C library and not standard C++ library, if I'm not wrong. I also want to know if many such other functions can be used in C++ programming. Is there a clear line between the standard libraries for C and C++? Is using either in the...
0
8687
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
8617
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9174
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
8884
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...
0
4376
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
4629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3057
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
2347
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2009
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.