Maybe in your area. Certainly not in my area.
I'm of the mind there should be a place he could do that safely and easily, but that place shouldn't be the library.
Libraries are one of the precious few places where one is not charged on entry or otherwise expected to buy something. Even public parks are increasingly hostile to the homeless, but often no real alternatives are offered. And I think that's a shame.
[0] https://www.chicago.gov/city/en/depts/cdph/provdrs/health_pr...