Error: Segmentation fault with getenv and $ROOT as parameter

后端 未结 0 1352
一向
一向 2021-01-02 04:33

When i pass $ROOT as token an error(Segmentation fault) is given.

char* input = readline("$ ");
char *tokens[strlen(input)];
while((tokens[numTokens         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题