Загрузка данных


smaugmol@us-s2:~/D09T06_ID_1577487-1/src/s21_string$ clang-format -n s21_string.h s21_string.c s21_string_test.c
s21_string.h:9:7: warning: code should be clang-formatted [-Wclang-format-violations]
#endif
      ^
s21_string.c:11:2: warning: code should be clang-formatted [-Wclang-format-violations]
}
 ^
s21_string_test.c:11:69: warning: code should be clang-formatted [-Wclang-format-violations]
        printf("Input: \"%s\", Output: %zu, Expected: %zu — %s\n",
smaugmol@us-s2:~/D09T06_ID_1577487-1/src/s21_string$ cat Makefile
CC = gcc
CFLAGS = -Wall -Wextra -Werror -std=c11
BUILD_DIR = ../../build
TARGET = $(BUILD_DIR)/Quest_6

strlen_tests: $(TARGET)

$(TARGET): s21_string.c s21_string_test.c s21_string.h
        mkdir -p $(BUILD_DIR)
        $(CC) $(CFLAGS) s21_string.c s21_string_test.c -o $(TARGET)

clean:
        rm -f $(TARGET)

.PHONY: strlen_tests clean