system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: There are laws in certain states that prevents feeding the homeless. Am I outlawed from feeding someone with a home too?

Seriously,  if I buy dinner for my friend, can the police arrest me if his housing status is in doubt?  What if a begging person actually has a low income home somewhere, is it still illegal?

Solved, thank you.
gpt
No where is it illegal to feed the homeless, in some areas of some states it's illegal to feed the homeless in public. Your situation (buying dinner from some restaurant or in your home) is not in public, so it's not illegal.