1 | // SPDX-License-Identifier: GPL-2.0 |
---|---|
2 | #define _GNU_SOURCE |
3 | #include <unistd.h> |
4 | #include <stdlib.h> |
5 | |
6 | int main(void) |
7 | { |
8 | free(get_current_dir_name()); |
9 | return 0; |
10 | } |
11 | #undef _GNU_SOURCE |
12 |
1 | // SPDX-License-Identifier: GPL-2.0 |
---|---|
2 | #define _GNU_SOURCE |
3 | #include <unistd.h> |
4 | #include <stdlib.h> |
5 | |
6 | int main(void) |
7 | { |
8 | free(get_current_dir_name()); |
9 | return 0; |
10 | } |
11 | #undef _GNU_SOURCE |
12 |