repo.or.cz
/
ArenaLive.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Initial revision of Arena Live - Plugin
[ArenaLive.git]
/
common.c
blob
fef934be42c5b386011aa4a06d9286350640307b
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
(
"/home/tomas/glugin/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