Combine the percentify() functions from Cachegrind and m_transtab into
a single more general one exported from m_libcprint.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4034 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/include/pub_tool_libcprint.h b/include/pub_tool_libcprint.h
index b9155b3..67621c3 100644
--- a/include/pub_tool_libcprint.h
+++ b/include/pub_tool_libcprint.h
@@ -45,6 +45,9 @@
 extern UInt VG_(sprintf) ( Char* buf, const HChar* format, ... );
 extern UInt VG_(vsprintf)( Char* buf, const HChar* format, va_list vargs );
 
+// Percentify n/m with p decimal places.  Includes the '%' symbol at the end.
+extern void VG_(percentify)(UInt n, UInt m, UInt d, Int n_buf, char buf[]);
+
 /* ---------------------------------------------------------------------
    Messages for the user
    ------------------------------------------------------------------ */