35 FILE *
f = fopen(path,
"wb");
38 fputs(
"ffmpeg rename test\n",
f);
45 FILE *
f = fopen(path,
"rb");
68 if (rename(
src,
dst) != 0) {
75 fprintf(stderr,
"source still exists after rename\n");
81 fprintf(stderr,
"destination missing after rename\n");
87 if (rename(
src,
dst) != -1) {
88 fprintf(stderr,
"rename of nonexistent source unexpectedly succeeded\n");
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
static av_cold void cleanup(FlashSV2Context *s)
uint32_t av_get_random_seed(void)
Get a seed to use in conjunction with random functions.
miscellaneous OS support macros and functions.
static int create_file(const char *path)
static int file_exists(const char *path)