int truncate(char *s, int n){
    int len = strlen(s);
    if (len <= n){
        return 0;
    }
    else{
        s[n] = '\0';
        return (len-n);
    }
}
strlen is does not return the actual size of the string in int, what should i do