mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
Move get_bool() to src/common/
...in preparation for sharing it more widely
This commit is contained in:
parent
471e3837b7
commit
bdf6e13881
4 changed files with 36 additions and 15 deletions
15
include/common/get-bool.h
Normal file
15
include/common/get-bool.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
/* 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 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue