Ok worked the last one out, now I am trying to convert to a function, what is wrong with this?
//description: counts the number of lines in a text document
#include <stdlib.h> //need for file operations?
void main(int argc,char *argv)
linecount(int argc,char *argv);
void linecount(int argc,char *argv)
ifp = fopen(argv,"r");
printf("the number of lines is:%5d\n",count);