mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
s390-tools: Add function util_strstrip
Function strstrip strips leading and trailung spaces from a given string. During review it was decided to move this function to the libutil library to make it available for other tools. Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
599b141b8a
commit
6a1b9cf10a
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* @defgroup util_str
|
||||
* @{
|
||||
* @brief Strip leading and trailing blanks
|
||||
*
|
||||
* Copyright IBM Corp. 2018
|
||||
*
|
||||
* s390-tools is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the MIT license. See LICENSE for details.
|
||||
*/
|
||||
|
||||
#ifndef LIB_UTIL_STR_H
|
||||
#define LIB_UTIL_STR_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
char *util_strstrip(char *s);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /** LIB_UTIL_STRSTRIP_H @} */
|
||||
Reference in New Issue
Block a user