Back to index

courier  0.68.2
Functions
strdevt.c File Reference
#include "numlib.h"
#include <string.h>

Go to the source code of this file.

Functions

char * libmail_str_dev_t (dev_t t, char *arg)

Function Documentation

char* libmail_str_dev_t ( dev_t  t,
char *  arg 
)

Definition at line 13 of file strdevt.c.

{
       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));
}