Back to index

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

Go to the source code of this file.

Functions

char * libmail_strh_ino_t (ino_t t, char *arg)

Variables

static const char xdigit [] = "0123456789ABCDEF"

Function Documentation

char* libmail_strh_ino_t ( ino_t  t,
char *  arg 
)

Definition at line 15 of file strhinot.c.

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

       *p=0;
       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 strhinot.c.