{{Short description|C header}} {{one source |date=March 2024}} '''<code><direct.h></code>''' is a C/C++ header file provided by Microsoft Windows, which contains functions for manipulating file system directories. Some POSIX functions that do similar things are in {{mono|<unistd.h>}}.

== Member functions ==

{| class="wikitable" |- ! Name || Action |- |<code>int '''_chdir'''(char* path)</code> || Change working directory. |- |<code>int '''_chdrive'''(int drive)</code> || Change disk drive. |- |<code>char* '''_getcwd'''(char* buffer, size_t length)</code> || Get the current working directory pathname<ref>{{Cite web | url=http://pubs.opengroup.org/onlinepubs/009695399/functions/getwd.html |title = Getwd}}</ref> |- |<code>char* '''_getwd'''(char* path_name);</code> || Get working directory. |- |<code>int '''_getdrive'''(void)</code> || Get disk drive. |- |<code>int '''_mkdir'''(const char* pathname)</code> || Make a directory. |- |<code>int '''_rmdir'''(const char* pathname)</code> || Remove a directory. |- |<code>void '''_fnmerge'''(char* path, const char* drive, const char* dir, const char* name, const char* ext)</code> || Merges drive, dir, name and ext into path. |- |<code>int '''_fnsplit'''(const char* path, char* drive, char* dir, char* name, char* ext)</code> || Splits path into drive, dir, name and ext. |- |<code>char* '''_searchpath'''(const char* file)</code> || Searches for a file. |}

== See also == * File system * Directory structure

== References == {{reflist}}

Category:C (programming language) headers

{{compu-prog-stub}}