projects
/
project
/
mountd.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
import v0.1
[project/mountd.git]
/
sys.c
1
#include <stdio.h>
2
#include <unistd.h>
3
#include <stdarg.h>
4
#include <stdlib.h>
5
6
#include "include/log.h"
7
8
int system_printf(char *fmt, ...)
9
{
10
char p[256];
11
va_list ap;
12
int r;
13
va_start(ap, fmt);
14
vsnprintf(p, 256, fmt, ap);
15
va_end(ap);
16
r = system(p);
17
return r;
18
}