JanetDocsI'm feeling luckyGithub sign in

os/exit



    cfunction

    (os/exit &opt x)
    
    Exit from janet with an exit code equal to x. If x is not an integer,
    the exit with status equal the hash of x.


1 exampleSign in to add an example
Loading...
$ janet -e '(os/exit 42)' ; echo $?
42
cellularmitosis