4 ms·
No, it's like func("22", 2) If you're not familiar with C, you might be unaware that there needs to be some way for code to know where the end of the string is
by RaisingSpear 3y ago
No, it's like func("22", 2)
If you're not familiar with C, you might be unaware that there needs to be some way for code to know where the end of the string is. Supplying the length is a common way to achieve this (this other being a sentinel value (i.e. a null terminator)).
- doubloon 3y agoso there is a program processing a bunch of text containing 8 bit numbers and the way they process it is to have a single call to func() over and over for every small string length 1 to 3?
- RaisingSpear 3y agoYour description is oddly specific. Maybe it's exactly like that, or maybe there's some variation to it, but the problem here has been simplified to make it more approachable.