buffer-name

buffer-name is a built-in function in `C source code'.

(buffer-name &optional BUFFER)

Return the name of BUFFER, as a string.
BUFFER defaults to the current buffer.
Return nil if BUFFER has been killed.