mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
faster
This commit is contained in:
parent
fc21c1d0db
commit
b8240d3d76
@ -28,9 +28,7 @@
|
||||
int ustrlen(unsigned char data[]) {
|
||||
/* Local replacement for strlen() with unsigned char strings */
|
||||
int i;
|
||||
|
||||
i = -1;
|
||||
do { i++; } while (data[i] != '\0');
|
||||
for (i=0;data[i];i++);
|
||||
|
||||
return i;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user