#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct _proc {
char **argv;
} PROC;
void test(PROC * this)
{
/* 申请指针数组空间 */
if (!(this->argv = (char**)malloc(sizeof(char *) * 3))) {
perror("malloc");
exit(1);
}
/* argv[0] */
if (!(this->argv[0] = malloc(0x40))) {
perror("malloc");
exit(1);
}
printf("this->argv = %p:%p\n", &this->argv, this->argv); // 0x7fffd65d9de0:0x5604d873e2a0