Skip to content

Conversation

@kamendov-maxim
Copy link
Owner

No description provided.

Comment on lines +16 to +20
// if (!test())
// {
// printf("Программа сейчас не работает\n");
// return PROGRAM_FAILED_TESTS;
// }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:(

strcpy(copy, string);
}
return copy;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strdup?

Comment on lines +7 to +8
char *getString(size_t * const len, FILE * file, char const endOfLine);
char *copyString(char const * const string);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Надо комментарии


#include "read.h"

char *getString(size_t *const len, FILE *file, char const endOfLine);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут точка с запятой лишняя, не компилируется

const bool test(void)
{
const size_t testNumber = 3;
char const *const testFileNames[testNumber] = {"../tests/testFile1.txt", "../tests/testFile2.txt", "../tests/testFile3.txt"};

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Стандарт не позволяет так делать, testNumber должен быть константным литералом, объявленным через #define. Не компилится.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants