473,406 Members | 2,549 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

__STDIN__ and __STDOUT__

Before I knew C I think that I remember seeing some C code that had
something to do with __STDIN__ and __STDOUT__ I was wondering if that
is a part of the C language and if so what it is.
Thanks
Nori

Jun 28 '06 #1
1 1300
On 28 Jun 2006 09:53:54 -0700, "no*********@gmail.com"
<no*********@gmail.com> wrote in comp.lang.c:
Before I knew C I think that I remember seeing some C code that had
something to do with __STDIN__ and __STDOUT__ I was wondering if that
is a part of the C language and if so what it is.
Thanks
Nori


No, it is not. It is an extension provided by the compiler or some
library used with it.

In C, the identifiers "stdin", "stdout", and "stderr" are macros
defined in <stdio.h> and evaluate to FILE* pointers for the three
pre-opened streams.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Jun 28 '06 #2

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

Similar topics

5
by: Edward C. Jones | last post by:
Is there a function or method that returns the name of a class or class instance? class X(object): pass X.amethod() or X().amethod() should return the string "X". X().__class__ returns...
2
by: Matthew Mueller | last post by:
I noticed in python2.3 printing unicode to an appropriate terminal actually works. But using sys.stdout.write doesn't. Ex: Python 2.3.4 (#2, May 29 2004, 03:31:27) on linux2 Type "help",...
6
by: Hoang Do | last post by:
is there a facility to inspect the run-time of a python script? Essentially, it would execute a script to a set specific point and then drop into the interpreter. Something like a "Stop" or...
20
by: Joe | last post by:
When you run "python -i scriptname.py" after the script completes you left at the interactive command prompt. Is there a way to have this occur from a running program? In other words can I...
3
by: Joal Heagney | last post by:
Hi everyone. I've been getting this error message in python, and it's really driving me up the wall. $ python 'import site' failed; use -v for traceback Python 2.3.4 (#1, Apr 18 2005,...
1
by: Shankar Iyer (siyer | last post by:
Hi, Suppose I have a string, sModuleName, that contains the name of a module. I now want to see what functions are in that module, but if I call dir(sModuleName), I instead get the list of...
6
by: John Salerno | last post by:
I'm guessing this might have something to do with my particular system? Warning: Problem with getpass. Passwords may be echoed. Password: hello 'hello'
2
by: Steven D'Aprano | last post by:
I have found myself writing functions rather like these: def openfile(filename): if filename == '-': # convention for shell scripts in Unix-land is to use # '-' for stdin/stdout for...
0
by: Gabriel Genellina | last post by:
En Fri, 19 Sep 2008 10:37:00 -0300, Robert Dailey <rcdailey@gmail.com> escribió: Works for me: p3class PrintStream: .... def write( self, message ): .... sys.__stdout__.write(...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
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,...
0
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...
0
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.