I don' t think because of that i m getting segmentation fault...
In main function strlen() returned value is not used and in shift() i think it will work....