~bouncepaw/agidel

2c7585038438aaa6ea4a9b0a365ba02cc506492e — Timur Ismagilov 5 years ago c3fa15c
This is the new life. Add `agidel-wrapper.c`
1 files changed, 14 insertions(+), 0 deletions(-)

A agidel-wrapper.c
A agidel-wrapper.c => agidel-wrapper.c +14 -0
@@ 0,0 1,14 @@
#include <stdio.h>
#include <unistd.h>

int main(int argc, char **argv) {
  printf("(import");
  for (int i = 1; i < argc; i++)
    printf("\n (agidel-plugin %s)", argv[i]);
  printf(")\n(display\n");
  char ch;
  while(read(STDIN_FILENO, &ch, 1) > 0) {
    printf("%c", ch);
  }
  printf(")");
}