lestrrat/File-MMagic-XS — pull request #5 by Hugmeir (2014-07-28 09:27:56+00:00)
Title: Use strrchr() instead of rindex()

This is primarily for Android's libc, bionic, which does
not export a rindex() function.

Looks like this is the recommended way nowadays, too: http://pubs.opengroup.org/onlinepubs/007904975/functions/rindex.html