473,807 Members | 2,877 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

conio.h

12 New Member
which header file can be used in C instad of conio.h as it is not there in C.
Sep 28 '06 #1
3 32178
tyreld
144 New Member
Depends on what you are trying to do. The <stdio.h> header is probably going to be your best bet.
Sep 28 '06 #2
sanketbarot
30 New Member
http://www.koders.com/c/fid990B3D848CBA A20BB884EEBB39A F3F9E400D37D3.a spx

from this site you can download conio.h. Put this header file in your include directory. Before that just check why do you need this header file.
Sep 28 '06 #3
tyreld
144 New Member
http://www.koders.com/c/fid990B3D848CBA A20BB884EEBB39A F3F9E400D37D3.a spx

from this site you can download conio.h. Put this header file in your include directory. Before that just check why do you need this header file.
The header file itself is useless without the library that actually implements the function prototypes defined in the header file.

You are better off using the <stdio.h> header. If you are trying to read from the console use the following (note that "stdin" is a macro that points to the standard input stream):

Expand|Select|Wrap|Line Numbers
  1. // reads from named stream and returns an unsigned char cast to an int
  2.  
  3. int getc(FILE *stream)
  4.  
  5. // equivalent to getc(stdin)
  6.  
  7. int getchar(void)
  8.  
  9. // reads in at most one less than size characters from stream and stores
  10. // them into the buffer pointed to by s.  Reading stops after an EOF or a
  11. // newline. If a newline is read, it is stored into the buffer. A '\0' is
  12. // stored after the last character in the buffer. Returns a pointer to s
  13. // on success and NULL on failure.
  14.  
  15. char * fgets(char *s, int size, FILE *stream)
  16.  
Sep 28 '06 #4

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

Similar topics

4
13815
by: Eduardo Elias Camponez | last post by:
Is conio.h C library or just C++? Tks Eduardo Camponez
17
7016
by: Mitas Nikos | last post by:
I am trying to use the library conio2 and though I have managed with a few relatively simple examples when i try to compile a program which conio's function clrscr is not in main() i get an error from the linker. undefined reference to `clrscr' ld returned 1 exit status I include the conio2.h on top of the file where clrscr() fn is. How do I pass the -lconio parameter when I have multiple files?Isn't it:
6
4030
by: Maverick | last post by:
There's a function in Borland C conio.h window (int left, int top, int right, int bottom) how can i provide the same function in VB.Net
17
2713
by: annai | last post by:
hi i want 2 know wat s the special for using conio.h
2
5180
by: amitppawar2007 | last post by:
#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; }
0
9720
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
9599
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,...
1
10374
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9193
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7650
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6879
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5685
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3854
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
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.