|Home > Standard C Implementation Definition > Environment|
Describes implementation-defined aspects of the Arm® C compiler and C library relating to environment, as required by the ISO C standard.
main()must be declared to take no arguments and must not return.
exit()is not supported by microlib and the function
main()must not return.
The main function can be defined in one of the following forms:
int main(void) int main() int main(int) int main(int, char **) int main(int,char **, char **)
main()are the words of the command line not including input/output redirections, delimited by whitespace, except where the whitespace is contained in double quotes.
_sys_isttyfunction. The standard I/O streams
stderrare assumed to be interactive devices. They are line-buffered at program startup, regardless of what
_sys_isttyreports for them. An exception is if they have been redirected on the command line.
<signal.h> header defines the following signals:
||3||Illegal instruction execution|
||4||Interactive attention signal|
||5||Bad memory access|
||7||Stack overflow (obsolete)|
||8||Run-time redirection error|
||9||Run-time memory error|
||10||Available for the user|
||11||Available for the user|
||12||Pure virtual function called|
||13||Not normally used|
The default handling of all recognized signals is to print a diagnostic message and
SIGSEGVthat correspond to a computational exception (18.104.22.168).
SIGSEGVcorrespond to a computational exception.
signal(sig, SIG_IGN);is executed at program startup (22.214.171.124).
NULL, indicating that no environment information is available.