int truncate(char *target, int amt){

    int leng = strlen(target);
    if (leng > amt){
        return 0;
    }
    char result[45] = "abc" ; 
    strncpy(result, target, amt);
    printf("This is the value of the truncated string: %s\n", result);
    return leng - amt ;
    

}
supposed to take target and store the first amt characters in result.