even with %ld it is going for infinite joy ride > > > > scanf("%d",&offset); > ^^^ > shouldnt this be %ld > > -- sreangsu > > > --------------------------------------------- > Find out more about this and other Linux India > mailing lists at http://lists.linux-india.org/ >