File and Directory Management
┌─────────────────────────┬──────────────┬─────────────────────────┬───────────┐
│ Function │ Header File │ Link to Function │ Descriptio│
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ chdir │ "direct.h" │ chdir
│ Changes │
│ │ │ │ the │
│ │ │ │ current │
│ │ │ │ working │
│ │ │ │ directory │
│ │ │ │ to a │
│ │ │ │ specified │
│ │ │ │ direc- │
│ │ │ │ tory. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _chdrive │ "direct.h" │ _chdrive
│ Changes │
│ │ │ │ the │
│ │ │ │ current │
│ │ │ │ working │
│ │ │ │ drive to │
│ │ │ │ a speci- │
│ │ │ │ fied │
│ │ │ │ drive. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ fstat │ "sys\stat.h" │ fstat
│ Gets and │
│ │ │ │ stores │
│ │ │ │ informa- │
│ │ │ │ tion │
│ │ │ │ about the │
│ │ │ │ open │
│ │ │ │ file. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _fullpath │ "stdlib.h" │ _fullpath
│ Gets and │
│ │ │ │ stores │
│ │ │ │ the full │
│ │ │ │ path name │
│ │ │ │ of a │
│ │ │ │ given │
│ │ │ │ partial │
│ │ │ │ path. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _getcwd │ "direct.h" │ _getcwd
│ Gets the │
│ │ │ │ full path │
│ │ │ │ name of │
│ │ │ │ the │
│ │ │ │ current │
│ │ │ │ working │
│ │ │ │ direc- │
│ │ │ │ tory. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _getdcwd │ "direct.h" │ _getdcwd
│ Gets the │
│ │ │ │ full path │
│ │ │ │ name for │
│ │ │ │ the │
│ │ │ │ current │
│ │ │ │ directory │
│ │ │ │ of a │
│ │ │ │ specified │
│ │ │ │ drive. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _getdrive │ "direct.h" │ _getdrive
│ Returns │
│ │ │ │ an │
│ │ │ │ integer │
│ │ │ │ corre- │
│ │ │ │ sponding │
│ │ │ │ to the │
│ │ │ │ letter │
│ │ │ │ repres- │
│ │ │ │ enting │
│ │ │ │ the │
│ │ │ │ current │
│ │ │ │ drive. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _makepath │ "stdlib.h" │ _makepath
│ Creates a │
│ │ │ │ single │
│ │ │ │ path │
│ │ │ │ name. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ mkdir │ "direct.h" │ mkdir
│ Creates a │
│ │ │ │ new │
│ │ │ │ direc- │
│ │ │ │ tory. │
└─────────────────────────┴──────────────┴─────────────────────────┴───────────┘
┌─────────────────────────┬──────────────┬─────────────────────────┬───────────┐
│ rmdir │ "direct.h" │ rmdir
│ Deletes a │
│ │ │ │ direc- │
│ │ │ │ tory. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _splitpath │ "stdlib.h" │ _splitpath
│ Decom- │
│ │ │ │ poses a │
│ │ │ │ path name │
│ │ │ │ into its │
│ │ │ │ four com- │
│ │ │ │ ponents. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ stat │ "sys\stat.h" │ stat
│ Stores │
│ │ │ │ informa- │
│ │ │ │ tion │
│ │ │ │ about a │
│ │ │ │ file or │
│ │ │ │ directory │
│ │ │ │ in a │
│ │ │ │ struc- │
│ │ │ │ ture. │
└─────────────────────────┴──────────────┴─────────────────────────┴───────────┘
[Back: Process Control]
[Next: Searching and Sorting]