#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <unistd.h>
#include <ctype.h>
Go to the source code of this file.
◆ DOS_PATH_CHAR
◆ PATH_CHAR
◆ PATH_CHAR_STR
◆ UNIX_PATH_CHAR
◆ UNIX_PATHS
◆ ConvertPathCharacters()
void ConvertPathCharacters |
( |
char * |
Path | ) |
|
Definition at line 21 of file rmkdir.c.
22{
24
27 {
29 {
31 }
32
34 }
35}
PRTL_UNICODE_STRING_BUFFER Path
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Referenced by main().
◆ main()
Definition at line 74 of file rmkdir.c.
75{
77 {
80 }
81
83
85}
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
void ConvertPathCharacters(char *Path)
int MakeDirectory(char *Directory)
◆ MakeDirectory()
int MakeDirectory |
( |
char * |
Directory | ) |
|
Definition at line 37 of file rmkdir.c.
38{
40
42
44 {
46 return 0;
47 }
48
49#if defined (UNIX_PATHS) || defined (__DJGPP__)
51 {
52 perror(
"Failed to create directory");
53 return 1;
54 }
55#else
57 {
58 perror(
"Failed to create directory");
59 return 1;
60 }
61#endif
62
64 {
65 perror(
"Failed to change directory");
66 return 1;
67 }
68
70
71 return 0;
72}
WCHAR CurrentDirectory[1024]
_Check_return_ _Ret_opt_z_ _CRTIMP char *__cdecl getcwd(_Out_writes_opt_(_SizeInBytes) char *_DstBuf, _In_ int _SizeInBytes)
_CRTIMP void __cdecl perror(_In_opt_z_ const char *_ErrMsg)
base for all directory entries
Referenced by main().