SDDSlib
|
Handles macro substitution within input strings. More...
Go to the source code of this file.
Functions | |
void | substituteTagValue (char *input, long buflen, char **macroTag, char **macroValue, long macros) |
Replaces macro tags in the input string with their corresponding values. | |
Handles macro substitution within input strings.
Definition in file substituteTagValue.c.
void substituteTagValue | ( | char * | input, |
long | buflen, | ||
char ** | macroTag, | ||
char ** | macroValue, | ||
long | macros ) |
Replaces macro tags in the input string with their corresponding values.
This function iterates through each macro tag and replaces occurrences of the tag in the input string with its corresponding value. It manages memory allocation for temporary buffers and ensures that substitutions are correctly applied for different tag formats.
input | The input string where macro substitution is to be performed. |
buflen | The length of the input buffer. |
macroTag | An array of macro tag strings to be replaced. |
macroValue | An array of values corresponding to each macro tag. |
macros | The number of macros to process. |
Definition at line 35 of file substituteTagValue.c.