mirror of
https://github.com/labwc/labwc.git
synced 2026-02-16 22:05:27 -05:00
Add string-helpers.c
This commit is contained in:
parent
51507df2e7
commit
7e55e2cd09
6 changed files with 47 additions and 54 deletions
11
include/common/string-helpers.h
Normal file
11
include/common/string-helpers.h
Normal 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 */
|
||||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue