What rotorhead said, only a home inspector probably will just tell you to get an engineer to look at it.
How old?
Does it have a basement/crawl space? How're the cracks in the actual foundation?
If financing your lender will most likely want it looked at by a structural engineer. They did with ours, the house is 50, the cracks in the block basement walls are hairline, but plainly bowed in slightly, the structural engineer was like "seriously, they needed this looked at? you might have an issue in another 50 years" the places the brick walls had cracked looked worse because the mortar had crumbled and fallen out. If you're seriously interested though have it checked, lender requirement or not.