SDDS ToolKit Programs and Libraries for C and Python
|
Handles macro substitution within input strings.
Definition in file substituteTagValue.c.
#include "mdb.h"
#include "scan.h"
#include "match_string.h"
#include <ctype.h>
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. | |
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 34 of file substituteTagValue.c.