Back to index

courier  0.68.2
Functions | Variables
strhdevt.c File Reference
#include "numlib.h"
#include <string.h>

Go to the source code of this file.


char * libmail_strh_dev_t (dev_t t, char *arg)


static const char xdigit [] = "0123456789ABCDEF"

Function Documentation

char* libmail_strh_dev_t ( dev_t  t,
char *  arg 

Definition at line 15 of file strhdevt.c.

char   buf[sizeof(t)*2+1];
char   *p=buf+sizeof(buf)-1;
unsigned i;

       for (i=0; i<sizeof(t)*2; i++)
              *--p= xdigit[t & 15];
              t=t / 16;
       return (strcpy(arg, p));

Here is the caller graph for this function:

Variable Documentation

const char xdigit[] = "0123456789ABCDEF" [static]

Definition at line 13 of file strhdevt.c.