Add new c function

From holman/dotfiles#f44f06e6670476946cbe67330e61b32f84dee82f