Subversion Repositories Kolibri OS

Rev

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

Rev Author Line No. Line
647 andrew_pro 1
#include 
6412 siemargl 2
#include 
647 andrew_pro 3
 
4
int fprintf(FILE* file, const char* format, ...)
5
{
6
va_list		arg;
7
char		*buf;
8
int		printed;
9
//int		data[4];
10
 
11
  va_start (arg, format);
12
  buf=malloc(4096*2); //8kb max
13
  //data[0]=(int)&arg-(int)&format;
14
 
15
  printed=format_print(buf,8191, format,arg);
6424 siemargl 16
  if (file == stderr)
17
  	debug_out_str(buf);
18
  else
19
  	fwrite(buf,printed,1,file);
647 andrew_pro 20
  free(buf);
21
 
22
  return(printed);
23
}