1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:57:45 +00:00

LibC: Use shared functon to generate unique filenames

Move some dupliated code into __generate_unique_filename()
This commit is contained in:
Shannon Booth 2019-12-26 16:40:35 +13:00 committed by Andreas Kling
parent 17aef7dc99
commit f6bd4f8691
2 changed files with 33 additions and 43 deletions

View file

@ -4,6 +4,8 @@
#include <sys/cdefs.h>
#include <sys/types.h>
[[nodiscard]] bool __generate_unique_filename(char* pattern);
__BEGIN_DECLS
#define EXIT_SUCCESS 0