 // Allocate Null space to all the characters in dest
    memset(dest, '\0', capacity);
    // Go through the src string and copy characters
    int i = 0;
    for (i; i < (capacity-1); i++){
        if (src[i] != '\0'){
             dest[i] = src[i];
        }
    }
    return dest;
It is supposed to act like strncopy