Hi ,
I want to call a command macro from a function.
I am using system() function in linux.
The problem is that,when I add parameters to it, I am using strcat() function, but it is giving me segmentation fault.
The code is as follow:
Code:int main() { char *s="ls"; strcat(s,"-l"); system(s); }
Thanks
Bargi