Quote Originally Posted by alter.ego View Post
How do I use macro in the function, I may get an 'undefined variable error' (apologies if I am missing on something)?
You already have used the MAXLINE macro in main when you created the arrays. You should have no problem using it in the loop to replace the magic numbers.