meaning of outport(LPT1,00)

N

nimmiejoey

Hello everybody,
could you please tell me the meaning of the command outport(LPT1,00)
 
R

Richard Bos

could you please tell me the meaning of the command outport(LPT1,00)

Under ISO C, nothing. Under many OSes out there today, nothing.

<off-topic>
Under MS-DOS, if whoever designed this extension was not being
intentionally confusing, it probably sends a null byte to the first
parallel port.
</off-topic>

If you want to be certain, ask this question again in a newsgroup that
discusses whatever compiler suite you are using.

Richard
 
M

Martin Ambuhl

Hello everybody,
could you please tell me the meaning of the command outport(LPT1,00)

Someone in a newsgroup, mailing list, or tech support for your
implementation might.
Notice that C has no commands. If
outport(LPT1,00);
appears in a C program, it is a function call of a non-standard function
having two arguments. It is extremely dangerous, although tempting, to
make assumptions about what your implementation thinks this function
does or what appears to be a macro LPT1 does. Any guesses that might be
made would do you a disservice: check your implementation's
documentation for the real answer.
 
N

Neil

Hello everybody,
could you please tell me the meaning of the command outport(LPT1,00)

1st Off topic.

It looks like a call to a function for DOS.

It sends 0 the the printers "port address"
 

Ask a Question

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.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,183
Messages
2,570,968
Members
47,517
Latest member
TashaLzw39

Latest Threads

Top