diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-02-17 22:55:34 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-02-18 07:49:15 +0100 |
commit | 330f133224af18c65b9325d9b6502e07b4f09f6b (patch) | |
tree | 7e68b7bbfb84fc9b1cb7f280bbe142cc1cf1592c /lib/rename.h | |
parent | b834890a3fa3f525cd8ef4e99554cdb4558d7e1b (diff) | |
download | curl-330f133224af18c65b9325d9b6502e07b4f09f6b.tar.gz |
rename: a new file for Curl_rename()
And make the cookie save function use it.
Diffstat (limited to 'lib/rename.h')
-rw-r--r-- | lib/rename.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/rename.h b/lib/rename.h new file mode 100644 index 000000000..d7442c844 --- /dev/null +++ b/lib/rename.h @@ -0,0 +1,27 @@ +#ifndef HEADER_CURL_RENAME_H +#define HEADER_CURL_RENAME_H +/*************************************************************************** + * _ _ ____ _ + * Project ___| | | | _ \| | + * / __| | | | |_) | | + * | (__| |_| | _ <| |___ + * \___|\___/|_| \_\_____| + * + * Copyright (C) 2020, Daniel Stenberg, <daniel@haxx.se>, et al. + * + * This software is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at https://curl.haxx.se/docs/copyright.html. + * + * You may opt to use, copy, modify, merge, publish, distribute and/or sell + * copies of the Software, and permit persons to whom the Software is + * furnished to do so, under the terms of the COPYING file. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ***************************************************************************/ + +int Curl_rename(const char *oldpath, const char *newpath); + +#endif /* HEADER_CURL_RENAME_H */ |