Back to index

courier  0.68.2
strinot.c
Go to the documentation of this file.
00001 /*
00002 ** Copyright 1998 - 2000 Double Precision, Inc.
00003 ** See COPYING for distribution information.
00004 */
00005 
00006 #if    HAVE_CONFIG_H
00007 #include      "config.h"
00008 #endif
00009 #include      "numlib.h"
00010 #include      <string.h>
00011 
00012 
00013 char *libmail_str_ino_t(ino_t t, char *arg)
00014 {
00015 char   buf[NUMBUFSIZE];
00016 char   *p=buf+sizeof(buf)-1;
00017 
00018        *p=0;
00019        do
00020        {
00021               *--p= '0' + (t % 10);
00022               t=t / 10;
00023        } while(t);
00024        return (strcpy(arg, p));
00025 }