nul_terminator: export the is_nul_terminated() function