Anytime you make a function call the compiler has to know what arguments are required and what the return value is. Otherwise, the compiler can't check to see if you are using the function correctly.
If the function is not coded in the file being compiled then you need a function prototype.
Al you need do here is #include the header file that contains the function prototype of the system function.
Comment