I don't understand Astyle formatting at all, but since beginner C courses all use Dev-C++, I forgot after a few months how to configure the LLVM clang-format arguments. Writing this down.
Put .clang-format in the project root directory, configure the tool, point the tool path to the LLVM clang-format executable, and set the working directory to:
<PROJECTPATH>
Arguments:
-style=file -i $(ACTIVE_EDITOR_FILENAME)
Using LLVM clang-format in Dev-C++