Skip to content
Snippets Groups Projects
Commit c222fdf0 authored by Arnaud Blanchard's avatar Arnaud Blanchard
Browse files

Improve test interactive mode

parent 86891057
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@
and, more generally, to use and operate it in the same conditions as regards security.
The fact that you are presently reading this means that you have had knowledge of the CeCILL v2.1 license and that you accept its terms. */
#include <stdio.h>
#include "blc_command.h"
#include "blc_realtime.h" //us_
......
......@@ -15,7 +15,7 @@ void display_argument(char const* argument, void*user_data){
int main( int argc, char **argv){
char const*data_to_pass="Here the text to display";
fprintf(stderr, "Test BLC_COMMAND_LOOP\n");
fprintf(stderr, "Test BLC_COMMAND_LOOP for interactive actions with the terminal\n");
blc_command_add("t", display_test_text, NULL, "Call a function which display the test text", (void*)data_to_pass);
blc_command_add("a", display_argument, "argument to display", "Call a function which display the text passed as argument", NULL);
......@@ -26,7 +26,7 @@ int main( int argc, char **argv){
//>=0 loop without blocking at the period given in µs (0 as fast as possible)
BLC_COMMAND_LOOP(-2){
blc_command_display_help();
blc_command_display_help(); //Display the help on the list of command
}
return EXIT_SUCCESS;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment