Most decent airlines provide a meal for their crew. There are exceptions, most notably Ryanair in Europe, where pilots even have to pay for the water they drink. Almost all airlines in the world provide a meal though. I've worked in four different airlines and I never had to worry about getting food on board.