473,507 Members | 5,257 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 4475
> 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***@storagecraft.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********@yahoo.com) (cb********@worldnet.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.nrc-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.net
Nov 14 '05 #54

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

Similar topics

2
2280
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
17032
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;...
9
1711
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
2744
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...
2
14550
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...
4
2969
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...
17
8910
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
1466
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...
6
4861
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...
0
7221
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,...
0
7313
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,...
1
7029
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7481
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...
0
3190
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...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1537
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 ...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
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...

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.