how do i get the value of src
char *copy(char *dest, const char *src, int capacity) {
    for (int i = 0; i < capacity; i++){
        if (src[i] != NULL){
            dest[i] = src[i];
        }
        else{
            dest[i] = '\0';
            break;
        }
    }

    return dest;
}