sscanfreturns the number of input items assigned. These may be fewer than what the code provides for, or even zero. Use the return value of function
sscanfto capture a possible input error in the
'l'case of the
whileloop and exit the program, raising an error flag, if such has been detected.
ARRAY_LENGTHmust be replaced with a variable.
ARRAY_LENGTHis now a variable,
junkcan no longer be a statically sized array. Instead you will have to allocate it dynamically with, e.g.,
mallochas been successful, before you can do anything else.
man 7 coon the AVIDD cluster to learn about RCS keywords. Add option
-vthat prints the version of the program (its revision number) as generated automatically by RCS.
junkarray. Is there an optimum value?