3 ms·
Same thing in C99: static const uint8_t table[256] = { ['\0'] = 1, ['a'] = 1, ['/'] = 1, ['\\'] = 1, }; bool g
by sfpotter 3y ago
Same thing in C99:
static const uint8_t table[256] = {
['\0'] = 1,
['a'] = 1,
['/'] = 1,
['\\'] = 1,
};
bool get_table_value(char c) {
return table[(uint8_t)c];
}
- spacechild1 3y agoThis is also valid C++, so the example in the article does seem rather contrived.