mirror of
https://codeberg.org/vyivel/dulcepan/
synced 2025-12-19 16:36:48 +02:00
output: store name
This commit is contained in:
@@ -35,6 +35,14 @@ void *dp_zalloc(size_t size) {
|
||||
return ptr;
|
||||
}
|
||||
|
||||
char *dp_strdup(const char *str) {
|
||||
char *ptr = strdup(str);
|
||||
if (ptr == NULL) {
|
||||
dp_log_fatal("Failed to duplicate %s", str);
|
||||
}
|
||||
return ptr;
|
||||
}
|
||||
|
||||
const char *dp_ext_from_path(const char *path) {
|
||||
size_t len = strlen(path);
|
||||
for (size_t i = len; i-- > 0;) {
|
||||
|
||||
Reference in New Issue
Block a user