int setdisk(int drive) Description The prototype for setdisk( ) is in <dir.h>. This function is not defined by the ANSI/ISO C/C++ standard. The setdisk( ) function sets the current drive to that specified by drive. Drive A corresponds to 0, drive B to 1, and so on. It returns the total number of drives in the system. Example This program switches to drive A and reports the total number of drives in the system: #include <stdio.h> #include <dir.h> int main(void) { printf("%d drives", setdisk(0)); return 0; } Related Function getdisk( ) void _splitpath(const char *fpath, char *drive, char *directory char *fname, char *extension) Description The prototype for _splitpath( ) is in <stdlib.h>. This function is not defined by the ANSI/ISO C/C++ standard. The _splitpath( ) function dissects the full path name specified in the string pointed to by fpath. The drive letter is put in the string pointed to by drive. The directory (and any subdirectories) is put in the string pointed to by directory. The filename is put in the C h a p t e r 1 6 : D i r e c t o r y F u n c t i o n s 469 THE C++ BUILDER FUNCTION You are here:CodeIdol > C++ > Borland C++ Builder: The Complete Reference > page: 3839404142434445464748
AJAX popular information C# language guides Windows books and cookbooks .......
С 2009 года мы стали переводить структура сайта на различные языки. Сайт теперь будет содержать книги не только на английском языке, но также и на других европейских языках, в том числе и на Русском языке.