dev: remove strcln in favor of strdup

This commit is contained in:
2025-06-11 16:13:01 +02:00
parent aa1cafe743
commit cbb3aa3910
4 changed files with 3 additions and 8 deletions

View File

@@ -11,11 +11,6 @@
static int selret_magic();
void strcln(char** dest, const char* source) {
*dest = malloc(strlen(source) + sizeof(char));
strcpy(*dest, source);
}
enum keys find_keyname(char* name) {
for (size_t i = 0; i < sizeof(key_mappings) / sizeof(key_mappings[0]); i++) {
if (strcmp(key_names[i], name) == 0) return (enum keys)i;