/
githubmirror
/
nvme-cli
Обзор
Документация
Войти
/
githubmirror
/
nvme-cli
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v3.0-b.4
shared/parse-util.h
17 строк
515 B
Martin Belanger
shared: rename everything to the shr_ namespace
28 июл 2026, 10:55
28 июл 2026, 10:55
8876cbc
Код
Авторство
О чём код?
/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of nvme-cli. * Copyright (c) 2026 Dell Technologies Inc. or its subsidiaries. * * Authors: Martin Belanger <martin.belanger@dell.com> */ #pragma once #include <stdbool.h> /* * Parse a boolean string using the systemd parse_boolean() convention: * 1/yes/y/true/t/on, 0/no/n/false/f/off (case-insensitive). * Return: 0 on success (*out set), -EINVAL if value matches neither list. */ int shr_parse_bool(const char *value, bool *out);