1 /* SPDX-License-Identifier: LGPL-2.1+ */
3 This file is part of systemd.
5 Copyright 2010 Lennart Poettering
8 #include "string-table.h"
9 #include "string-util.h"
11 ssize_t string_table_lookup(const char * const *table, size_t len, const char *key) {
17 for (i = 0; i < len; ++i)
18 if (streq_ptr(table[i], key))