| | |
| | | /** |
| | | * Parse string parameter |
| | | * @param context |
| | | * @param value |
| | | * @param len |
| | | * @param value Pointer to string buffer where pointer to non-null terminated string will be returned |
| | | * @param len Length of returned non-null terminated string |
| | | * @param mandatory |
| | | * @return |
| | | */ |
| | |
| | | /** |
| | | * Parse text parameter (can be inside "") |
| | | * @param context |
| | | * @param value |
| | | * @param len |
| | | * @param value Pointer to string buffer where pointer to non-null terminated string will be returned |
| | | * @param len Length of returned non-null terminated string |
| | | * @param mandatory |
| | | * @return |
| | | */ |
| | |
| | | return FALSE; |
| | | } |
| | | |
| | | scpi_bool_t SCPI_IsCmd(scpi_t * context, const char * cmd) { |
| | | if (! context->paramlist.cmd) { |
| | | return FALSE; |
| | | } |
| | | |
| | | const char * pattern = context->paramlist.cmd->pattern; |
| | | return matchCommand (pattern, cmd, strlen (cmd)); |
| | | } |