1 #include <stdio.h> 2 #include <unistd.h> 3 #include <stdarg.h> 4 #include <stdlib.h> 5 6 #include "include/log.h" 7 #include "include/sys.h" 8 9 int system_printf(char *fmt, ...) 10 { 11 char p[256]; 12 va_list ap; 13 int r; 14 va_start(ap, fmt); 15 vsnprintf(p, 256, fmt, ap); 16 va_end(ap); 17 r = system(p); 18 return r; 19 } 20
This page was automatically generated by LXR 0.3.1. • OpenWrt