expand_env.h 410 B

12345678910111213
  1. #pragma once
  2. /* Expand any $ENV type environment variables in 'input',
  3. return a newly allocated buffer with the result.
  4. Buffer should be freed after use.
  5. This is very basic expansion, doesn't do escaping or anything else.
  6. */
  7. char *expand_environment(const char *input, const char *src_name, int src_line_no);
  8. /* Free a buffer allocated by expand_environment */
  9. void free_expanded(char *expanded);