mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
14 lines
410 B
C
14 lines
410 B
C
|
#pragma once
|
||
|
|
||
|
/* Expand any $ENV type environment variables in 'input',
|
||
|
return a newly allocated buffer with the result.
|
||
|
|
||
|
Buffer should be freed after use.
|
||
|
|
||
|
This is very basic expansion, doesn't do escaping or anything else.
|
||
|
*/
|
||
|
char *expand_environment(const char *input, const char *src_name, int src_line_no);
|
||
|
|
||
|
/* Free a buffer allocated by expand_environment */
|
||
|
void free_expanded(char *expanded);
|