changed k&r naming scheme, renamed files

master
Tibor Bizjak 2023-07-23 12:22:28 +02:00
parent 3fd2a66b17
commit 291e9e87ec
4 changed files with 8 additions and 4 deletions

8
.gitignore vendored
View File

@ -13,9 +13,13 @@
# except k&r
!k\&r/
# except chapters
!k\&r/**/[0-9]*/
!k\&r/[0-9]*/
# and excercise solutions
!k\&r/**/[0-9]*.c
!k\&r/*/[0-9]*.c
!k\&r/*/[0-9]*/
!k\&r/*/[0-9]*/*.c
# do ignore _ prefixed files
k\&r/**/_*
# and header files
!k\&r/**/*.h

View File

@ -1,7 +1,7 @@
#include <stdio.h>
/* compile with 04-find-no-overflow.c or 04-find-opt.c
* gcc 04-find.c [04-find-no-overflow.c | 04-find-opt.c] */
/* compile with find-no-overflow.c or find-opt.c
* gcc main.c [find-no-overflow.c | find-opt.c] */
int find(char *pattern, char lineno_flag, char except_flag);