468,513 Members | 1,403 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,513 developers. It's quick & easy.

About Outp function in conio.h for c or c++?

#include <stdio.h>
#include <conio.h>
int main(void)
{
unsigned port = 0;
int value;
value = outp(port, 'C');
printf("Value %c sent to port number %d\n", value, port);
return 0;
}

It gives error
8 C:\Dev-Cpp\Abc\... `outp' undeclared (first use this function)

How to solve this ??
I write function in conio.h but it can't work...
Any one know correct function to declare outp in conio.h??
Plz help me to run this program...
Thanks in advance
Apr 15 '08 #1
2 4583
weaknessforcats
9,207 Expert Mod 8TB
Maybe you should wait for these other folks to answer your question before posting it here.

http://au.answers.yahoo.com/answers2...5053112AA4kADk.
Apr 15 '08 #2
questionit
553 512MB
#include <stdio.h>
#include <conio.h>
int main(void)
{
unsigned port = 0;
int value;
value = outp(port, 'C');
printf("Value %c sent to port number %d\n", value, port);
return 0;
}

It gives error
8 C:\Dev-Cpp\Abc\... `outp' undeclared (first use this function)

How to solve this ??
I write function in conio.h but it can't work...
Any one know correct function to declare outp in conio.h??
Plz help me to run this program...
Thanks in advance
Hi

outp is C's non-standard function. It is not available in some compilers. You might want to try using this function and write your program in some other C compiler.

Outp function directly accesses I/O ports and this isn't allowed under NT
and later operating systems. So if you are using Windows NT, XP, etc, you can try these programs in Win32 SDK or similar.


Regards
Qi
Apr 15 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Ken | last post: by
1 post views Thread by suchitra | last post: by
17 posts views Thread by Mitas Nikos | last post: by
17 posts views Thread by annai | last post: by
6 posts views Thread by Dic4000 | last post: by
22 posts views Thread by Michael Post | last post: by
43 posts views Thread by shaanxxx | last post: by
26 posts views Thread by Albert | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.