Subversion Repositories Kolibri OS

Rev

Rev 6424 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6412 siemargl 1
#include 
647 andrew_pro 2
#include 
6429 siemargl 3
#include 
647 andrew_pro 4
 
6429 siemargl 5
int printf(const char *format, ...)
647 andrew_pro 6
{
6424 siemargl 7
   int          i = 0;
6429 siemargl 8
   int          printed_simbols = 0;
647 andrew_pro 9
   va_list      arg;
10
   char         *s;
11
 
12
   va_start(arg,format);
13
 
6429 siemargl 14
   i=con_init_console_dll();
647 andrew_pro 15
 
16
   if (i==0)
17
   {
18
     s=malloc(4096);
19
     printed_simbols=format_print(s,4096,format,arg);
6429 siemargl 20
     con_write_string(s, printed_simbols);
647 andrew_pro 21
     free(s);
22
   }
23
   return(printed_simbols);
24
}
25