Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
blaar
blibs
blc_program
Commits
c222fdf0
Commit
c222fdf0
authored
Jul 17, 2019
by
Arnaud Blanchard
Browse files
Improve test interactive mode
parent
86891057
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/blc_command.cpp
View file @
c222fdf0
...
...
@@ -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_
...
...
t_interactive/t_interactive.cpp
View file @
c222fdf0
...
...
@@ -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
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment