User Tools

Site Tools


c:conio.h:cprintf

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

c:conio.h:cprintf [2013/02/03 19:55]
127.0.0.1 external edit
c:conio.h:cprintf [2024/02/16 01:05] (current)
Line 1: Line 1:
 ====== cprintf ====== ====== cprintf ======
 <code c> <code c>
 +int cprintf(const char *format[, argument, ...]);
 </code> </code>
  
 ==== description of cprintf ==== ==== description of cprintf ====
-cprintf is in work by code-reference.com \\  +prints formatted output to the screen.\\ 
-if you are faster... don't hasitate and add it+\\ 
 +cprintf takes multiple arguments, applies to each of the format specifier contained in the format string, pointed to by\\ format, and prints the formatted data directly to the current text window on the screenThe number of available format\\ must match the number of arguments.\\
  
 +For more information on format specifiers, see [[c:stdio.h:printf|printf]] format".\\
 +
 +Depending _directvideo of the global variable, the string is written either directly or through a BIOS call to screen memory.\\
 +\\
 +To contrast to fprintf and printf, not translated cprintf line character (\ n) in the combination of characters carriage\\ return / line feed (\ r \ n). Tab character (specified with t \) are not expanded to spaces.\\
 +\\
 +     Note: Do not use this function in any case in Win32 GUI applications.
 <code c> <code c>
-no example at the moment+ 
 +#include <conio.h> 
 + 
 +int main(void) 
 +
 +    clrscr(); 
 +    window(10, 10, 80, 25); 
 +    cprintf("Hello world\r\n"); 
 +    getch(); 
 +    return 0; 
 +}
 </code> </code>
  
 ===== output of cprintf c example ===== ===== output of cprintf c example =====
-    no example at the moment+    Hello world
  

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/conio.h/cprintf.1359917752.txt · Last modified: 2024/02/16 01:03 (external edit)

Impressum Datenschutz