hi
there is a function in c called insline(). This function is not supported by microsoft visual studio any more. does any one know what other function can do instead of insline()
This is a discussion on function insline() within the C Programming forums, part of the General Programming Boards category; hi there is a function in c called insline(). This function is not supported by microsoft visual studio any more. ...
hi
there is a function in c called insline(). This function is not supported by microsoft visual studio any more. does any one know what other function can do instead of insline()
If it does what its description is:
Code:void insline(FILE * fp) { putc('\n', fp); }![]()
No, zcs7, that's not what it does. It inserts a line by scrolling the text below the current cursor position down, and thus doesn't belong in the stdio.h category of IO operations.
For full, portable support, you probably want to look at pdcurses or some such.
For simply implementing it yourself, you want to look at the Windows Console functions. In particular, to achieve this, you will be looking at the ReadConsoleOutput and WriteConsoleOutput functions.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
But of course, since insline() is not standard, what it does depends on which library it is from (and then again, that is true even for functions in the standard library).Originally Posted by matsp
C + C++ Compiler: MinGW port of GCC
Version Control System: Bazaar
Look up a C++ Reference and learn How To Ask Questions The Smart Way