BOOL truncate(cdbfapiPlus* handle, int recno);

The function truncate(N) removes all records after N.
This operation cannot be undone.


{
    // your code
    printf( "Reccount = %ld\n", recCount(dbf) );
    truncate(dbf, 100);
    printf( "Reccount = %ld\n", recCount(dbf) );
    // your code
}