check-coding-system

check-coding-system is a built-in function in `C source code'.

(check-coding-system CODING-SYSTEM)

Check validity of CODING-SYSTEM.
If valid, return CODING-SYSTEM, else signal a `coding-system-error' error.
It is valid if it is nil or a symbol defined as a coding system by the
function `define-coding-system'.