~ubuntu-branches/ubuntu/precise/hime/precise

« back to all changes in this revision

Viewing changes to src/unix-exec.c

  • Committer: Package Import Robot
  • Author(s): Yao Wei (魏銘廷)
  • Date: 2012-01-14 00:24:08 UTC
  • Revision ID: package-import@ubuntu.com-20120114002408-e79gagbeg1rt8npv
Tags: upstream-0.9.9
Import upstream version 0.9.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "hime.h"
 
2
 
 
3
void unix_exec(char *fmt,...)
 
4
{
 
5
  va_list args;
 
6
  char tt[512];
 
7
 
 
8
  va_start(args, fmt);
 
9
  vsnprintf(tt,sizeof(tt), fmt, args);
 
10
  va_end(args);
 
11
  printf("exec %s\n", tt);
 
12
  system(tt);
 
13
}