character.c:14:70:警告:施放给' char '从较小的整数类型' int' [-Wint到指针铸] sprintf(命令," erl -noshell -s program main%s -s init stop",(char )out);
当我尝试没有指针
时UserService
我希望通过character.c:14:70: warning: format specifies type 'char *' but the argument has type
'char' [-Wformat]
sprintf(command, "erl -noshell -s program main %s -s init stop", (char)out);
~~ ^~~~~~~~~
%c
获取终端窗口的大小并传递给我的Erlang程序,以便它可以正确显示文本。
stty size
我该怎么做?