Skip to content

Commit af12341

Browse files
wrapper.c Fix warnings.
1 parent 327c1ef commit af12341

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/wrapper.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ static inline BOOL is_single_or_last_option(WCHAR *opt) {
1313
}
1414

1515
/*
16-
// Function to log debug information to a file
16+
Function to log debug information to a file
17+
1718
void log_to_file(const wchar_t *logMessage) {
1819
// Open the log file in append mode
1920
FILE *logFile = _wfopen(L"C:\\logfile.txt", L"a+"); // Adjust the path accordingly
@@ -26,10 +27,12 @@ void log_to_file(const wchar_t *logMessage) {
2627
wprintf(L"Failed to open log file\n");
2728
}
2829
}
29-
/*
30+
*/
3031

31-
/* Following function taken from https://creativeandcritical.net/downloads/replacebench.c which is in public domain; Credits to the there mentioned authors*/
32-
/* replaces in the string "str" all the occurrences of the string "sub" with the string "rep" */
32+
/*
33+
Following function taken from https://creativeandcritical.net/downloads/replacebench.c which is in public domain;
34+
Credits to the there mentioned authors. replaces in the string "str" all the occurrences of the string "sub" with the string "rep"
35+
*/
3336
static inline wchar_t *replace_smart(wchar_t *str, wchar_t *sub, wchar_t *rep) {
3437
size_t slen = wcslen(sub);
3538
size_t rlen = wcslen(rep);

0 commit comments

Comments
 (0)