X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=apps%2FHawk%2FCVEiCL%2FEiC%2Fmodule%2FstdClib%2Fsrc%2Fstrround.c;fp=apps%2FHawk%2FCVEiCL%2FEiC%2Fmodule%2FstdClib%2Fsrc%2Fstrround.c;h=0000000000000000000000000000000000000000;hb=e4c14cdbdf2fe805e79cd96ded236f57e7b89060;hp=4e4882387c578b13b8ffc6b5ab7c2a324f41c4d3;hpb=454138ff8a20f6edb9b65a910101403d8b520643;p=opencv diff --git a/apps/Hawk/CVEiCL/EiC/module/stdClib/src/strround.c b/apps/Hawk/CVEiCL/EiC/module/stdClib/src/strround.c deleted file mode 100644 index 4e48823..0000000 --- a/apps/Hawk/CVEiCL/EiC/module/stdClib/src/strround.c +++ /dev/null @@ -1,21 +0,0 @@ -int strround(char *s,int len) -{ - /* string rounding function - * (c) Edmond J. Breen. - * round back the numbers in a string - * and fill with zeros. - * where: 'len' is the length of the string. - * Returns 1 on success - * and 0 if over flow has occurred. - */ - if(len>0) - if(s[--len] >= '5') { - do { - s[len--] = '0'; - } while(len > 0 && s[len] == '9'); - if(s[len] == '9') - return 0; - s[len]++; - } - return 1; -}