c安全:发行当前执行用户目录

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main()
{
   char arr[10];
   strcpy(arr,getenv("HOME"));
   printf("%s",arr);
 
   return 0;
}

 

 

posted on 2021-01-16 16:21  lydstory  阅读(43)  评论(0)    收藏  举报

导航