Hi!
> + if (i == mod_len) {
Shouldn't we check that next character is a whitespace here?
I guess that module name that is prefix of unrelated module is going to
be rare but it's not impossible.
> + fclose(file);
> + return true;
> + }
> + }
> +
> + fclose(file);
> + return false;
> +}
--
Cyril Hrubis
chrubis@suse.cz