I think it would be better to make the caller do strtolower.  That may not be wanted in all cases.