mirror of
https://github.com/clockworkpi/Menu.git
synced 2026-03-24 12:52:42 +01:00
first commit
This commit is contained in:
12
60_Utils/02_Bean/beans/shell/utils/log.bean
Executable file
12
60_Utils/02_Bean/beans/shell/utils/log.bean
Executable file
@@ -0,0 +1,12 @@
|
||||
|
||||
func append_log(format. char, ...) {
|
||||
import rt::c;
|
||||
define {
|
||||
filename = "bean.log";
|
||||
}
|
||||
var stream void = fopen(filename, "a");
|
||||
if stream ~= null {
|
||||
vfprintf(stream, format, va_start(format));
|
||||
fclose(stream);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user