c_getcwd Interface

interface


Called by

interface~~c_getcwd~~CalledByGraph interface~c_getcwd c_getcwd proc~current_directory current_directory proc~current_directory->interface~c_getcwd proc~absolute_path absolute_path proc~absolute_path->proc~current_directory proc~directory_files directory_files proc~directory_files->proc~absolute_path proc~options_for options_for proc~options_for->proc~absolute_path proc~process_file process_file proc~process_file->proc~absolute_path proc~process_text process_text proc~process_file->proc~process_text proc~process_text->proc~options_for proc~run run proc~run->proc~directory_files proc~run->proc~process_file proc~process_stdin process_stdin proc~run->proc~process_stdin proc~process_stdin->proc~process_text

private function c_getcwd(buf, size) result(p) bind(c, name='getcwd'))

Arguments

Type IntentOptional Attributes Name
character(kind=c_char, len=1), intent(out) :: buf(*)

receives the path

integer(kind=c_size_t), value :: size

size of buf in bytes

Return Value type(c_ptr)

Description

C getcwd: write the current directory into buf, NUL-terminated; a null pointer if it does not fit or cannot be determined.