Mega Code Archive

 
Categories / C Tutorial / Stdlib h
 

System

Item Value Header filestdlib.h Declarationint system(const char *str); Functionpasses the string as a command to the command processor. Returnzero on success or nonzero on error. Display the contents of the current working directory in window system: #include <stdlib.h>   int main(void)   {     printf("%s",system("dir"));   }