mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-31 13:40:11 +01:00
macros: add nm_strstrip() util
This commit is contained in:
parent
885d187d23
commit
d6a331bd8c
1 changed files with 9 additions and 0 deletions
|
|
@ -250,4 +250,13 @@ _NM_BACKPORT_SYMBOL_IMPL(VERSION, RETURN_TYPE, FUNC, _##FUNC##_##VERSION, ARGS_T
|
|||
|
||||
/*****************************************************************************/
|
||||
|
||||
static inline char *
|
||||
nm_strstrip (char *str)
|
||||
{
|
||||
/* g_strstrip doesn't like NULL. */
|
||||
return str ? g_strstrip (str) : NULL;
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
#endif /* __NM_MACROS_INTERNAL_H__ */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue