my-pkgs/acpilight/xbacklight.c

19 lines
283 B
C
Raw Normal View History

2022-07-08 08:24:58 +00:00
#include <unistd.h>
#include <stdlib.h>
int main (int argc, char** argv)
{
int i;
char** args;
args = malloc((argc+1)*sizeof(char*));
for(i = 0; i < argc; ++i) {
args[i] = argv[i];
}
args[argc] = NULL;
execv("/opt/xbacklight", args);
2022-07-17 08:18:36 +00:00
free(args);
2022-07-08 08:24:58 +00:00
return 0;
}