Spaces:
Running
Running
File size: 522 Bytes
5cee033 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
//========================================================================
//
// pdfsig.cc
//
// This file is licensed under the GPLv2 or later
//
// Copyright (C) 2010 Albert Astals Cid <[email protected]>
//
//========================================================================
#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
|