Commit a71dfe18 authored by Alexey Hohlov's avatar Alexey Hohlov
Browse files

Форматирование

parent 81af280e
......@@ -52,10 +52,10 @@ char* inttostr(int val)
static const int MAX = 32;
static char buff[MAX]={0};
char* res = buff + MAX - 2;
do
{
*(res--) = '0' + val%10;
val/=10;
do {
*(res--) = '0' + val % 10;
val /= 10;
}
while (val > 0 && res > buff);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment