File: unix-exec.cpp

package info (click to toggle)
gcin 2.9.0%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 22,776 kB
  • sloc: cpp: 33,947; ansic: 9,313; makefile: 653; sh: 557
file content (13 lines) | stat: -rw-r--r-- 205 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "gcin.h"

void unix_exec(char *fmt,...)
{
  va_list args;
  char tt[512];

  va_start(args, fmt);
  vsnprintf(tt,sizeof(tt), fmt, args);
  va_end(args);
  printf("exec %s\n", tt);
  system(tt);
}