# How can put points between the string?

Question asked by mahir on Feb 20, 2015
Latest reply on Feb 20, 2015 by mahir

hi all

How can
put points between the string?
(for example: 10.00.00)

thanks

`    ``void Str_convert(unsigned long t, unsigned char *str, unsigned char n)`
`    ``{`
`         ``unsigned char a[7];  `
`        ``unsigned char i, j;`

`        ``a[0]=(t/10000000)%10;`
`        ``a[1]=(t/1000000)%10;`
`         ``a[2]=(t/100000)%10;`
`        ``a[3]=(t/10000)%10;`
`        ``a[4]=(t/1000)%10;`
`        ``a[5]=(t/100)%10;`
`        ``a[6]=(t/10)%10;`
`        ``a[7]=(t/1)%10;`
`        ``for(i=0; i<8; i++)    `
`            ``a[i]=a[i]+'0';`
`        ``for(i=0; a[i]=='0' && i<=-2; i++);  `
`        ``for(j=8-n; j<i; j++)  `
`            ``{`
`            ``*str=' ';`
`             ``str++;`
`            ``}`
`        ``for(; i<8; i++)  `
`            ``{`
`             ``*str=a[i]; str++;`
`             ``}`
`        ``*str='\0';`
`              ``}`

`       int main(void)`
`            ``{`

`         unsigned long counter;`
`         unsigned char Buffer[10];           `
`       `
`       `
`          ``Str_convert(counter,&Buffer[0],8);            `
`    ``Print(100,30,(unsigned char *)&Buffer[0],red,Green);`
`            ``}`