File: example_get_runtime_os.f90

package info (click to toggle)
fortran-stdlib 0.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 34,008 kB
  • sloc: f90: 24,178; ansic: 1,244; cpp: 623; python: 119; makefile: 13
file content (9 lines) | stat: -rw-r--r-- 297 bytes parent folder | download
1
2
3
4
5
6
7
8
9
! Demonstrate usage of (non-cached) runtime OS query
program example_get_runtime_os
    use stdlib_system, only: OS_NAME, get_runtime_os
    implicit none

    ! Runtime OS detection (full inspection)
    print *, "Runtime OS Type: ", OS_NAME(get_runtime_os())

end program example_get_runtime_os