C11, 6.2.4 Storage durations of objects, 4 (emphasis added): An object whose identifier is declared with the storage-class specifier _Thread_local has thread s
I know the variables in function are using stack space. When function exit, the space are freed. That's why we should declare the pointer variable as static in