You are given the .c file (scantext.c) that you need to finish. There is a mystrlen
function included that you may use, if necessary. You are not to remove the function or change it in any
way. However, if you do not use it (call it), you will get a compiler warning (something along
the lines of
not using a function that is in the file). If you are not calling that function and you do not get a
compiler warning, you have done something wrong (like maybe changed the mystrlen function?).
The only way to stop the warning is to remove the function (which you can't do) or to call it (which you may
not need to do.) So, what about the warning? The warning is OK. When I compile your code, I will also use
this command, which won't produce the warning:
gcc -O -Wall -Wextra -Werror -ansi -pedantic -Wno-unused-function driver.c scantext.c -o scantext
The purpose of this compiler warning was for you to learn and understand why you get the warning
to simply ignore it. At this point, you should be able to explain most, if not all, of the warnings that
you are receiving from the compiler. If you don't understand them, you need to be asking either the
instructor (me) or a CS TA/Tutor.