mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
16 lines
377 B
C
16 lines
377 B
C
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||
|
|
#ifndef __LABWC_GET_BOOL_H
|
||
|
|
#define __LABWC_GET_BOOL_H
|
||
|
|
#include <stdbool.h>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* get_bool - interpret string and return boolean
|
||
|
|
* @s: string to interpret
|
||
|
|
*
|
||
|
|
* Note: This merely performs a case-insensitive check for 'yes' and 'true'.
|
||
|
|
* Returns false by default.
|
||
|
|
*/
|
||
|
|
bool get_bool(const char *s);
|
||
|
|
|
||
|
|
#endif /* __LABWC_GET_BOOL_H */
|