Hi, I tried that also. But the result is same. It is incrementing thrice each time. Can anyone help me out? thanx, Pradeep --- Jeff Walter <jeffw@xxxxxxxxxxx> wrote: > yenganti pradeep wrote: > > Value 0 > > Value 3 > > Value 6 > > > > etc... > > > > Why is this three numbers increment? > > For some reason the increment you have is being > executed more than once. Try > moving the increment of value to its own line, so... > > int length; > int var = 0; > > length = sprintf (page, "Value %d",var); > var++; > > return length; > > > -- > Jeff Walter > - > : send the line > "unsubscribe linux-net" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at > http://vger.kernel.org/majordomo-info.html > __________________________________________________________ Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com - : send the line "unsubscribe linux-net" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html