Другие языки программирования и технологии
Создание папок (программа на Си)
Какой командой создать папку в Windows на языке Си?
#include <sys/stat.h>
#include <sys/types.h>
int mkdir(const char *pathname, mode_t mode);
DESCRIPTION
mkdir attempts to create a directory named pathname.
The parameter mode specifies the permissions to use. It is modified by the processâs umask in the usual way: the permissions of the created direc-
tory are (mode & ~umask & 0777). Other mode bits of the created directory depend on the operating system. For Linux, see below.
The parameter mode specifies the permissions to use. It is modified by the processâs umask in the usual way: the permissions of the created direc-
tory are (mode & ~umask & 0777). Other mode bits of the created directory depend on the operating system. For Linux, see below.
The newly created directory will be owned by the effective uid of the process. If the directory containing the file has the set group id bit set,
or if the filesystem is mounted with BSD group semantics, the new directory will inherit the group ownership from its parent; otherwise it will be
owned by the effective gid of the process.
If the parent directory has the set group id bit set then so will the newly created directory.
#include <sys/types.h>
int mkdir(const char *pathname, mode_t mode);
DESCRIPTION
mkdir attempts to create a directory named pathname.
The parameter mode specifies the permissions to use. It is modified by the processâs umask in the usual way: the permissions of the created direc-
tory are (mode & ~umask & 0777). Other mode bits of the created directory depend on the operating system. For Linux, see below.
The parameter mode specifies the permissions to use. It is modified by the processâs umask in the usual way: the permissions of the created direc-
tory are (mode & ~umask & 0777). Other mode bits of the created directory depend on the operating system. For Linux, see below.
The newly created directory will be owned by the effective uid of the process. If the directory containing the file has the set group id bit set,
or if the filesystem is mounted with BSD group semantics, the new directory will inherit the group ownership from its parent; otherwise it will be
owned by the effective gid of the process.
If the parent directory has the set group id bit set then so will the newly created directory.
CreateDirectory
Функция создаёт новую директорию.
Существует в: Win16, Win32, Win NT
CreateDirectory
Для С/С++ объявлена в winbase.h.
Объявление:
Для С/С++
BOOL CreateDirectory(
LPCTSTR lpPathName, // Указатель на строку содержащую путь к новой директории
LPSECURITY_ATTRIBUTES lpSecurityAttributes // Указатель на атрибуты
);
Функция создаёт новую директорию.
Существует в: Win16, Win32, Win NT
CreateDirectory
Для С/С++ объявлена в winbase.h.
Объявление:
Для С/С++
BOOL CreateDirectory(
LPCTSTR lpPathName, // Указатель на строку содержащую путь к новой директории
LPSECURITY_ATTRIBUTES lpSecurityAttributes // Указатель на атрибуты
);
Григорий Мельников
Такое ощущение, что вы это откуда-то скопировали. Если это так, то не могли бы вы пожалуйста указать источник?
Похожие вопросы
- Нужна помощь)) Есть условие задачи для создания программы на СИ++
- Помогите написать пару программ на СИ
- Помогите с программой на Си. (создание многомерных динамических массивов)
- Программа на Си
- Помогите с программой на си! Программа в описании
- Требуется помощь с программа на СИ
- Помогите пожалуйста составить программу на СИ++. Заранее всем БЛАГОДАРЕН!
- Помогите исправить ошибку в программе на Си
- Написать программу на Си
- Довелось увидеть папку с файлами, дата создания папки 69й год, тыща девятьсот, разумеется. Как такое возможно?