In alternativa si può sempre usare il comando file di Linux...
Amaro C++, il gusto pieno dell'undefined behavior.
Regole del Forum