I'm developing a C program, which will work with 02 files .txt
The first file is a report, which comes out directly from the system, and there are information such as item code, location and quantity in stock, this information is on the same line ...
The product code takes up at most the first 14 characters of the string, and I used the following code to remove it from .txt
:
memcpy( cod, &c[0], 14);
cod[15] = 'memcpy( cod, &c[0], 14);
cod[15] = '%pre%';
';
However, in the continuation of the line, I have more information that I wanted to allocate in other variables, to pass them to the second .txt
file, which I will use as output for a Zebra printer.
How do I access characters from position 15 onwards, and copy them to a variable?