2.13.4.3 exit Declaration: void exit(int status); Causes the program to terminate normally. First the functions registered by atexit are called, then all open streams are flushed and closed, and all temporary files opened with tmpfile are removed. The value of status is returned to the environment. If status is EXIT_SUCCESS, then this signifies a successful termination. If statusis EXIT_FAILURE, then this signifies an […]
Category: Çevre Fonksiyonlar
system
2.13.4.5 system Declaration: int system(const char *string); The command specified by string is passed to the host environment to be executed by the command processor. A null pointer can be used to inquire whether or not the command processor exists. If string is a null pointer and the command processor exists, then zero is returned. […]
getenv
2.13.4.4 getenv Declaration: char *getenv(const char *name); Searches for the environment string pointed to by name and returns the associated value to the string. This returned value should not be written to. If the string is found, then a pointer to the string’s associated value is returned. If the string is not found, then a null pointer […]
atexit
2.13.4.2 atexit Declaration: int atexit(void (*func)(void)); Causes the specified function to be called when the program terminates normally. At least 32 functions can be registered to be called when the program terminates. They are called in a last-in, first-out basis (the last function registered is called first). On success zero is returned. On failure a […]
abort
2.13.4.1 abort Declaration: void abort(void); Causes an abnormal program termination. Raises the SIGABRT signal and an unsuccessful termination status is returned to the environment. Whether or not open streams are closed is implementation-defined. No return is possible. Faydalı Yetersiz