in Above code also if you check the value of str it will show only it's not Full statement this will also terminate on NULL .

Thanx