# Purpose
BESKS computes a sequence of modified Bessel functions of the third kind of order XNU + I at X, where X .GT. 0, XNU lies in (-1,1), and I = 0, 1, ... , NIN - 1, if NIN is positive and I = 0, 1, ... , NIN + 1, if NIN is negative. On return, the vector BK(.) Contains the results at X for order starting at XNU.
# Description
This canonical unsafe binding exposes original SLATEC routine `BESKS`. Its documented behavior is taken from the selected, source-hash-verified provider prologue; the exact implementation source is [BESKS](https://www.netlib.org/slatec/fnlib/besks.f).
# Arguments
## `XNU`
**Direction:** `input`. **Fortran type:** `REAL`. **Rust ABI type:** `*mut f32`. **Shape:** scalar.
Input fractional starting order. `XNU` must lie strictly between -1 and 1.
## `X`
**Direction:** `input`. **Fortran type:** `REAL`. **Rust ABI type:** `*mut f32`. **Shape:** scalar.
Input evaluation point. `X` must be strictly positive; native code does not modify it.
## `NIN`
**Direction:** `input`. **Fortran type:** `INTEGER`. **Rust ABI type:** `*mut crate::FortranInteger`. **Shape:** scalar.
Input nonzero signed sequence length. `abs(NIN)` is the required result-array length; a positive value advances the order and a negative value steps it downward from `XNU`.
## `BK`
**Direction:** `input-output`. **Fortran type:** `REAL`. **Rust ABI type:** `*mut f32`. **Shape:** rank 1; dimensions (*).
Writable output array with at least `abs(NIN)` elements. On return `BK\[I\]` holds the modified Bessel K value at order `XNU+I`; native code retains no pointer.
# Return value
This is a Fortran subroutine and has no direct return value. Its results, status, and any persistent solver state are communicated through the documented arguments.
# Workspace and array requirements
- `BK`: not a workspace argument
# ABI notes
- Canonical Rust path: `slatec_sys::special::bessel::besks`
- Original SLATEC routine: `BESKS`
- Native symbol: `besks_`
- ABI fingerprint: `subroutine:void(mut_f32,mut_f32,mut_i32,mut_f32_ptr_rank1)`
- Exact Netlib source file: [BESKS](https://www.netlib.org/slatec/fnlib/besks.f)
# Safety
Every raw pointer must be non-null unless this argument contract expressly permits null, correctly aligned, and valid for its documented readable or writable extent. Preserve Fortran column-major layout, length, leading-dimension, workspace, callback-lifetime, aliasing, and provider-runtime requirements. The native routine does not retain ordinary argument pointers beyond this call.