blob: 1b01fababaef36742e8e009d8f6a2a8f577ccdbf [file] [log] [blame]
//========================================================================
//
// pdfsig.cc
//
// This file is licensed under the GPLv2 or later
//
// Copyright (C) 2010 Albert Astals Cid <aacid@kde.org>
//
//========================================================================
#ifndef NUMBEROFCHARACTERS_H
#define NUMBEROFCHARACTERS_H
static int numberOfCharacters(unsigned int n)
{
int charNum = 0;
while (n >= 10)
{
n = n / 10;
charNum++;
}
charNum++;
return charNum;
}
#endif