From 9c45d9ad13fdf439d44d7443ae75da15ea0223ed Mon Sep 17 00:00:00 2001 From: Sam Varshavchik Date: Mon, 19 Aug 2013 16:39:41 -0400 Subject: Initial checkin Imported from subversion report, converted to git. Updated all paths in scripts and makefiles, reflecting the new directory hierarchy. --- numlib/strsizet.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 numlib/strsizet.c (limited to 'numlib/strsizet.c') diff --git a/numlib/strsizet.c b/numlib/strsizet.c new file mode 100644 index 0000000..fd9d1d1 --- /dev/null +++ b/numlib/strsizet.c @@ -0,0 +1,25 @@ +/* +** Copyright 1998 - 2000 Double Precision, Inc. +** See COPYING for distribution information. +*/ + +#if HAVE_CONFIG_H +#include "config.h" +#endif +#include "numlib.h" +#include + + +char *libmail_str_size_t(size_t t, char *arg) +{ +char buf[NUMBUFSIZE]; +char *p=buf+sizeof(buf)-1; + + *p=0; + do + { + *--p= '0' + (t % 10); + t=t / 10; + } while(t); + return (strcpy(arg, p)); +} -- cgit v1.2.3