GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||
GeezerVison is showing en.wikipedia.org — C process control - Wikipedia
C process control refers to a group of functions in the standard library of the C programming language implementing basic process control operations.[1][2] The process control operations include actions such as termination of the program with various levels of cleanup, running an external command interpreter or accessing the list of the environment operations. Overview of functionsThe process control functions are defined in the
ExampleThe following is an example of communicating with the system environment in C. #include <stdio.h> #include <stdlib.h> int main() { char* path = getenv("PATH"); if (!path) { fprintf(stderr, "PATH environment variable not found.\n"); } else { printf("PATH variable: %s\n", path); } printf("Listing current directory contents using system(\"ls\"):\n"); int ret = system("ls"); if (ret == -1) { fprintf(stderr, "system() call failed!"); } return 0; } References
External linksWikibooks has a book on the topic of: C Programming/C Reference | |||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |