Yes, this is a familiar old ISO C idiom.