how can I do unix system commands through a C app?
how can I do unix system commands through a C app?
The system() function in stdlib.h. I just posted a long explanation on it's use in the C++ board. Aside from the name of the header file it's included in, there is no difference between the explanations I would've given you.
edit: http://cboard.cprogramming.com/showthread.php?p=426074
Last edited by sean; 12-29-2004 at 10:29 AM.
Segmentation Fault: I am an error in which a running program attempts to access memory not allocated to it and core dumps with a segmentation violation error. This is often caused by improper usage of pointers, attempts to access a non-existent or read-only physical memory address, re-use of memory if freed within the same scope, de-referencing a null pointer, or (in C) inadvertently using a non-pointer variable as a pointer.