use NULL instead of nullptr (for c)