mirror of
https://github.com/brmlab/brmbar.git
synced 2025-06-08 13:24:01 +02:00
finish barcode generator
This commit is contained in:
parent
549230620d
commit
819dee4e7d
3 changed files with 33 additions and 25 deletions
8
brmbar.c
8
brmbar.c
|
@ -42,10 +42,10 @@ void fill_items()
|
|||
|
||||
//Read the item EAN
|
||||
while (i < BUFSIZE) {
|
||||
if (buf[i] == '\t') {
|
||||
if (buf[i] == ';') {
|
||||
buf[i] = 0;
|
||||
strcpy(items[items_count].ean, &buf[begin]);
|
||||
buf[i] = '\t';
|
||||
buf[i] = ';';
|
||||
begin = i + 1;
|
||||
break;
|
||||
}
|
||||
|
@ -55,10 +55,10 @@ void fill_items()
|
|||
//Read the item name
|
||||
i = begin;
|
||||
while (i < BUFSIZE) {
|
||||
if (buf[i] == '\t') {
|
||||
if (buf[i] == ';') {
|
||||
buf[i] = 0;
|
||||
strcpy(items[items_count].name, &buf[begin]);
|
||||
buf[i] = '\t';
|
||||
buf[i] = ';';
|
||||
begin = i+1;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue