Why not compare the entire string including the null character,
if the model string is longer it will fail the compare at the null.
if (strncmp(p->name, model, strlen(p->name)+1);
.....................................................................
: Peter "Eyes" Eiserloh eiserloh@llab.chinalake.navy.mil
: None of the opinions expressed here are in any way related those
: of my employer.
: Linux, Modula-2/3, Compilers, Esperanto, Physics, Babylon-5
.....................................................................