]>
Commit | Line | Data |
---|---|---|
b697c21c CP |
1 | /* |
2 | * VAR functionality | |
3 | */ | |
4 | ||
5 | #include "newsearch.h" | |
6 | ||
7 | #include <stdio.h> | |
8 | #include <stdlib.h> | |
9 | ||
f33f3f52 | 10 | struct searchNode *var_parse(searchCtx *ctx, int argc, char **argv) { |
b697c21c CP |
11 | if(argc < 1) { |
12 | parseError = "var: usage: var variable"; | |
13 | return NULL; | |
14 | } | |
15 | ||
f33f3f52 | 16 | return var_get(ctx, argv[0]); |
b697c21c | 17 | } |