Skip to content
Prev Previous commit
Next Next commit
added example
  • Loading branch information
wassup05 committed Aug 23, 2025
commit 15982fa39bcda70dfd259c0817c1e8c77be91ab3
1 change: 1 addition & 0 deletions example/system/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ ADD_EXAMPLE(path_dir_name)
ADD_EXAMPLE(make_directory)
ADD_EXAMPLE(remove_directory)
ADD_EXAMPLE(cwd)
ADD_EXAMPLE(get_file_size)
10 changes: 10 additions & 0 deletions example/system/example_get_file_size.f90
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
program example_get_file_size
use stdlib_system, only: get_file_size
implicit none

character(*), parameter :: path = "src"

print *, get_file_size(path)

end program example_get_file_size