// strdup no está en C17: con -std=c17, stdlib y string.h no la declaran.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void) {
    char *copy = strdup("Lima");
    if (copy == NULL) {
        return 1;
    }
    printf("%s\n", copy);
    free(copy);
    return 0;
}
