Direct.h

From Wikipedia, the free encyclopedia
Jump to: navigation, search

direct.h 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 unistd.h.

Member functions[edit]

Name Action
int chdir(char* path) Change working directory.
int chdrive(int drive) Change disk drive.
char* getcwd(char* buffer, size_t length) Get working directory.
char *getwd(char *path_name); Get the current working directory pathname[1]
int getdrive(void) Get disk drive.
int mkdir(const char* pathname) Make a directory.
int rmdir(const char* pathname) Remove a directory.
void fnmerge(char* path, const char* drive, const char* dir, const char* name, const char* ext) Merges drive, dir, name and ext into path.
int fnsplit(const char* path, char* drive, char* dir, char* name, char* ext) Splits path into drive, dir, name and ext.
char* searchpath(const char* file) Searches for a file.

See also[edit]

References[edit]