![]() |
This is Unofficial EPICS BASE Doxygen Site
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "errlog.h"
#include "epicsString.h"
#include "macLib.h"
Go to the source code of this file.
Functions | |
char *epicsStdCall | macEnvExpand (const char *str) |
Expand environment variables in a string. More... | |
char *epicsStdCall | macDefExpand (const char *str, MAC_HANDLE *macros) |
Expands macros and environment variables in a string. More... | |
char* epicsStdCall macDefExpand | ( | const char * | str, |
MAC_HANDLE * | macros | ||
) |
Expands macros and environment variables in a string.
This routine is similar to macEnvExpand() but allows an optional handle to be passed in that may contain additional macro definitions. These macros are appended to the set of macros from environment variables when expanding the string.
str | string to be expanded |
macros | opaque handle; may be NULL if only environment variables are to be used |
Definition at line 26 of file macEnv.c.
char* epicsStdCall macEnvExpand | ( | const char * | str | ) |
Expand environment variables in a string.
This routine expands a string which may contain macros that are environment variables. It parses the string looking for such references and passes them to macGetValue() for translation. It uses malloc() to allocate space for the expanded string and returns a pointer to this null-terminated string. It returns NULL if the source string contains any undefined references.
str | string to be expanded |
Definition at line 20 of file macEnv.c.