Допустим, у меня есть: sample.c
int main (...) {
char str*;
get s through user input
test(str);
return 0;
}
void test (str) {
copy str to new file
change file permissions on new file
close file
}
Здесь не может быть условий гонки, так как у меня нет потоков в моем методе main(). Это правда?