Manual Reference Pages  - system_errno (3m_system)
     NAME
system_errno(3f) - [M_system:ERROR_PROCESSING] C error return value
(LICENSE:PD)
CONTENTS
Synopsis
Description
Examples
     SYNOPSIS
integer(kind=c_int) function system_errno()
     DESCRIPTION
Many C routines return an error code which can be queried by errno.
The M_system(3fm) is primarily composed of Fortran routines that
call C routines. In the cases where an error code is returned vi
system_errno(3f) these routines will indicate it.
     EXAMPLES
Sample program:
   program demo_system_errno
   use M_system, only : system_errno, system_unlink, system_perror
   implicit none
   integer :: stat
   stat=system_unlink(not there/OR/anywhere)
   if(stat.ne.0)then
           write(*,*)err=,system_errno()
           call system_perror(*demo_system_errno*)
   endif
   end program demo_system_errno
Results:
 >  err=           2
 >  *demo_system_errno*: No such file or directory
 | Nemo Release 3.1 |  system_errno (3m_system) |  March 07, 2025 |  
Generated by manServer 1.08 from a03de300-2584-40fa-be9d-9165dc9847a9 using man macros.