mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
string-helpers.c: add string_empty()
This commit is contained in:
parent
8c9be2f0d1
commit
c066821046
9 changed files with 27 additions and 14 deletions
|
|
@ -1,6 +1,13 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef LABWC_STRING_HELPERS_H
|
||||
#define LABWC_STRING_HELPERS_H
|
||||
#include <stdbool.h>
|
||||
|
||||
/**
|
||||
* string_null_or_empty() - Check if string is NULL or empty
|
||||
* @s: string to check
|
||||
*/
|
||||
bool string_null_or_empty(const char *s);
|
||||
|
||||
/**
|
||||
* trim_last_field() - Trim last field of string splitting on provided delim
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue