Use NULL instead of '\0' to avoid type conversion