Hell, it was implemented in the Fighting Fantasy and Lone Wolf books by Steve Jackson and Ian Livingston (Fighting Fantasy), and Joe Dever (Lone Wolf). Quest for Glory is the other game that springs to mind.

It doesn't need to be a big deal. You have an inventory item called Food where 10 units = 1 days food. You also get warnings when you about to miss a meal or a night's sleep.