FILE *file = NULL;
        char line[255];
	char buf[255];
	memset(buf,0,sizeof(char)*255);
	memset(line,0,sizeof(char)*255);
	file = popen("sed -n '2p' /hong | cut -d= -f2", "r");
	if(file!= NULL)
	{
		if (fgets(line, 255, file) == NULL)
		{
			mg_printf(conn, "err1");
			pclose(file);
			return;
		}
	}
	pclose(file);

  

相关文章:

  • 2022-12-23
  • 2021-11-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
猜你喜欢
  • 2021-07-27
  • 2021-06-08
  • 2022-12-23
  • 2022-02-26
  • 2022-12-23
  • 2022-12-23
  • 2021-09-21
相关资源
相似解决方案