#include <dirent.h>
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
Go to the source code of this file.
◆ convertPath()
void convertPath |
( |
char * |
pathToConvert | ) |
|
Definition at line 15 of file rdel.c.
16{
17 while (*pathToConvert != 0)
18 {
19 if (*pathToConvert == '\\')
20 {
21 *pathToConvert = '/';
22 }
23 pathToConvert++;
24 }
25}
Referenced by main().
◆ getDirectory()
Definition at line 28 of file rdel.c.
29{
30 int lengthOfDirectory;
31
33 {
36 directorySpec [lengthOfDirectory] = '\0';
37 }
38 else
39 {
40 strcpy (directorySpec,
".");
41 }
42}
char * strcpy(char *DstString, const char *SrcString)
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
_Check_return_ _CRTIMP _CONST_RETURN char *__cdecl strrchr(_In_z_ const char *_Str, _In_ int _Ch)
◆ getFilename()
Definition at line 45 of file rdel.c.
46{
48 {
50 }
51 else
52 {
54 }
55}
◆ main()
Definition at line 58 of file rdel.c.
59{
60 int justPrint = 0;
62 int returnCode;
63
65 {
67
68 if (justPrint)
69 {
71 }
72 else
73 {
76 {
77
78#if 0
79 printf (
"Unlink of %s failed. Unlink returned %d.\n",
81 returnCode);
82 return returnCode;
83#endif
84 }
85 }
86 }
87
88 return 0;
89}
void convertPath(char *pathToConvert)