| 105 | */ |
| 106 | |
| 107 | inline uint tdc_create_key(char *key, const char *db, const char *table_name) |
| 108 | { |
| 109 | /* |
| 110 | In theory caller should ensure that both db and table_name are |
| 111 | not longer than NAME_LEN bytes. In practice we play safe to avoid |
| 112 | buffer overruns. |
| 113 | */ |
| 114 | return (uint) (strmake(strmake(key, db, NAME_LEN) + 1, table_name, |
| 115 | NAME_LEN) - key + 1); |
| 116 | } |
| 117 | #endif /* TABLE_CACHE_H_INCLUDED */ |
no test coverage detected