43 ms·
Good question. I preface this by the fact that I am not any expert on gcc compiler internals, I am assuming how I'd do it. 1. This implementation tests every b
by WalterBright 8y ago
Good question. I preface this by the fact that I am not any expert on gcc compiler internals, I am assuming how I'd do it.
1. This implementation tests every byte, as discussed in other posts here. That makes it slow.
2. This implementation is likely not used - the gcc compiler probably has an internal code sequence it emits for a strcpy.