Long Island is getting almost $10 million in federal grants for those who are homeless, a problem that may be on the rise due to the foreclosure crisis.

Under the U.S. Department of Housing and Urban Development, Suffolk County is slated for more than $3.1 million while Nassau’s share is more than $6.7 million. New York City will get almost $96 million. The state’s $157.5 million allocation is part of HUD’s $1.4 billion funding to the “front lines” in the fight against homelessness.

advertisement | advertise on newsday

“As we move into the coldest time of the year, it’s critical that no program risk running out of money to keep their doors open,” HUD Secretary Shaun Donovan recently said in announcing the funds. “These grants will make certain that those programs on the front lines of helping the homeless have the resources they need to house and serve persons who might otherwise be forced to turn to the streets.”

The money pays for permanent and transitional housing for homeless families and individuals. The grants can go toward getting people back on their feet, including job training, child care, health care and drug abuse treatment. Local officials can also use the dollars for street outreach to the homeless