Function: cdr-safe

cdr-safe is a function defined in data.c.

Signature

(cdr-safe OBJECT)

Documentation

Return the cdr of OBJECT if it is a cons cell, or else nil.

Other relevant functions are documented in the list group.

View in manual

Probably introduced at or before Emacs version 14.

Shortdoc

;; list
(cdr-safe '(one two three))
    => (two three)

Aliases

cvs-cdr

Source Code

// Defined in /usr/src/emacs/src/data.c
{
  return CDR_SAFE (object);
}