repo.or.cz
/
glugin.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
more mozilla mompatibility
[glugin.git]
/
common.cpp
blob
8a339aa5f35c05b7d9605d94fb29f59dc376aa7e
1
2
#include <stdio.h>
3
#include <stdarg.h>
4
5
void
Log
(
const char
*
c
,...)
6
{
7
va_list
al
;
8
FILE
*
f
=
fopen
(
".glugin.log"
,
"a"
);
9
if
(!
f
)
return
;
10
va_start
(
al
,
c
);
11
vfprintf
(
f
,
c
,
al
);
12
va_end
(
al
);
13
fputc
(
'
\n
'
,
f
);
14
fclose
(
f
);
15
}
16