hi everyone!
i have a small problem. should be obvious by the error but im stumped.
Code:void getname ( void ) { char fname[BUFSIZ]; char lname[BUFSIZ]; int check; printf(" enter customers names type( quit ) to stop\n"); while ( strcmp ( fname[check], "quit" ) != 0){ printf( "customers first name:\n"); fgets(fname, sizeof fname , stdin); printf( "customers last name:\n"); fgets( lname, sizeof lname , stdin ); check++; } }