mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-23 03:26:56 -04:00
faster
This commit is contained in:
parent
fc21c1d0db
commit
b8240d3d76
1 changed files with 1 additions and 3 deletions
|
@ -28,9 +28,7 @@
|
||||||
int ustrlen(unsigned char data[]) {
|
int ustrlen(unsigned char data[]) {
|
||||||
/* Local replacement for strlen() with unsigned char strings */
|
/* Local replacement for strlen() with unsigned char strings */
|
||||||
int i;
|
int i;
|
||||||
|
for (i=0;data[i];i++);
|
||||||
i = -1;
|
|
||||||
do { i++; } while (data[i] != '\0');
|
|
||||||
|
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue