Add string-helpers.c

This commit is contained in:
Johan Malm 2020-10-09 19:46:59 +01:00
parent 51507df2e7
commit 7e55e2cd09
6 changed files with 47 additions and 54 deletions

View file

@ -0,0 +1,11 @@
#ifndef __LABWC_STRING_HELPERs_H
#define __LABWC_STRING_HELPERS_H
/**
* string_strip - strip white space left and right
* Note: this function does a left skip, so the returning pointer cannot be
* used to free any allocated memory
*/
char *string_strip(char *s);
#endif /* __LABWC_STRING_HELPERs_H */

View file

@ -5,12 +5,12 @@
* session_environment_init - set enrivonment variables
* Note: Same as `. ~/.config/labwc/environment` (or equivalent XDG config dir)
*/
session_environment_init(void);
void session_environment_init(void);
/**
* session_autostart_init - run autostart file as shell script
* Note: Same as `sh ~/.config/labwc/autostart` (or equivalent XDG config dir)
*/
session_autostart_init(void);
void session_autostart_init(void);
#endif /* __LABWC_SESSION_H */