3 #include "eBatRuntime.h"
5 int bar_runtime_system_exec(
int argc,
char** argv){
7 bat_debug(
"[RUNTIME] [System] [EXEC] Count: %d\n", argc);
8 int ret = cli_handler_ebat(argc, argv);
17 void bat_runtime_system_echo(
char* text,
int newline,
int endline){
19 bat_debug(
"[RUNTIME] [System] [ECHO] %s\n", text);
25 tty_printf(
"%s%s%s", (newline == 1?
"< ":
""), text, (endline == 1?
" \n":
" "));
33 void bat_runtime_system_set(
char* key,
char* val){
40 int len_key = (key == NULL?0:
strlen(key));
41 int len_val = (val == NULL?0:
strlen(val));
46 if (val == NULL || len_val == 0){
47 variable_write(key,
"");
55 char* bat_runtime_system_get(
char* key){
57 bat_debug(
"[RUNTIME] [System] [GET] '%s'\n", key);
59 return variable_read(key);
63 void bat_runtime_system_pause(){
65 bat_debug(
"[RUNTIME] [System] [Pause]\n");
66 bat_runtime_system_echo(
"Please, press button", 1, 1);
size_t strlen(const char *str)
Возращает длину строки