![](/img/trans.png)
[英]how can I make a copy the same value on char pointer(its point at) from char array in C?
[英]How can I create a char array variable that changes its value every time I run the code?
我正在使用这样声明的 char 数组变量:
char our_thread[8]="thread1";
我将它用于创建线程的 function 中:
kthread_create(thread_fn,NULL,our_thread);
该线程将在进程列表中命名为“thread1”。
我想将thread1 char数组变量更改为动态变量,以便每次创建线程时都会有另一个名称而不是“thread1”。
谢谢你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.