I'm working on a regex parser that sifts through an input file and matches a student's name to their grade.
How can I get the 2nd sprintf line to regex match on the name stored in char name ?Code:char name[BUF_SIZE]; sprintf(name,argv); /*copy netid into name */ printf("Grade Info For '%s'\n\n",name); sprintf(name_grade, "(\\-.[char name goes here]).\\|.([0-9]+)");
The file input format is
ThanksCode:- studentname | 29