#include <dirent.h>
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
Go to the source code of this file.
◆ convertPath()
void convertPath |
( |
char * |
pathToConvert | ) |
|
Definition at line 17 of file rrmdir.c.
18{
19 while (*pathToConvert != 0)
20 {
21 if (*pathToConvert == '\\')
22 {
23 *pathToConvert = '/';
24 }
25 pathToConvert++;
26 }
27}
Referenced by main().
◆ getDirectory()
Definition at line 30 of file rrmdir.c.
31{
32 int lengthOfDirectory;
33
35 {
38 directorySpec [lengthOfDirectory] = '\0';
39 }
40 else
41 {
42 strcpy (directorySpec,
".");
43 }
44}
_CRT_RESTORE_GCC_WARNINGS _CRT_DISABLE_GCC_WARNINGS _Check_return_ _CRTIMP _CONST_RETURN char *__cdecl strrchr(_In_z_ const char *_Str, _In_ int _Ch)
◆ getFilename()
Definition at line 47 of file rrmdir.c.
48{
50 {
52 }
53 else
54 {
56 }
57}
◆ main()
Definition at line 60 of file rrmdir.c.
61{
62 int justPrint = 0;
64 int returnCode;
65
67 {
69
70 if (justPrint)
71 {
73 }
74 else
75 {
78 {
79
80#if 0
81 printf (
"Rmdir of %s failed. Rmdir returned %d.\n",
83 returnCode);
84 return returnCode;
85#endif
86 }
87 }
88 }
89
90 return 0;
91}
void convertPath(char *pathToConvert)