org-agenda-file-p

org-agenda-file-p is a compiled Lisp function in `org.el'.

(org-agenda-file-p &optional FILE)

Return non-nil, if FILE is an agenda file.
If FILE is omitted, use the file associated with the current
buffer.