B
bashcommando
Guest
I want to be able to make my own linux commands. So I learned a bit of C here and there and my skills got better and better. But now I want to get bash input from the commands. I tried the following:
But it said:
Help?
Code:
#include <stdio.h>
int main(void)
{
printf( system("$1") );
}
Code:
test.c: In function 'main':
test.c:5: warning: passing arg 1 of 'printf' makes pointer from integer without a cast