mirror of
https://github.com/swaywm/sway.git
synced 2026-04-29 06:46:22 -04:00
15 lines
365 B
C
15 lines
365 B
C
|
|
#ifndef _SWAY_SHEXP_H
|
||
|
|
#define _SWAY_SHEXP_H
|
||
|
|
|
||
|
|
#include <stdbool.h>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Takes a pointer to a string and reallocates it with the result of its shell
|
||
|
|
* expansion. Undefined environment variables are considered as errors. Returns
|
||
|
|
* true if it succeeds, otherwise returns false, leaving the original string
|
||
|
|
* unchanged.
|
||
|
|
*/
|
||
|
|
bool shell_expand(char **path);
|
||
|
|
|
||
|
|
#endif
|