BUG: Token array now terminated by \0

This commit is contained in:
2023-10-21 00:36:12 +02:00
parent 075cfddcaf
commit 5d5b4d93d7
3 changed files with 10 additions and 4 deletions

View File

@@ -3,6 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/**
* @name analyze
@@ -10,7 +11,8 @@
* @brief Analyze the tokens syntax. Return -1 on error and 1 on warning, 0 else.
*
* @param char* tokens: analyze_tokens
* @param char* device: target device
*/
int analyze (char* tokens);
int analyze (char* tokens, char* device);
#endif//ANALYZER_H