Use 4x4 buttons as password

How should I write the terminating null?