Is "model" null-terminated? If so, that should be:
strcmp(p->name, model)
Otherwise, you need to have the length of the "model" through some
other means, and should do:
if ( strlen(p->name) == model_len && strncmp(...
-hpa
-- Always looking for a few good BOsFH. ** Linux - the OS of global cooperation I am Baha'i -- ask me about it or see http://www.bahai.org/