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
commit f6bd4f8691
Notes: sideshowbarker 2024-07-19 10:39:54 +09:00
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