Back to index

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

Go to the source code of this file.

Functions

int comparseqid (const char *qid, ino_t *n)

Variables

static const char hex [] = "0123456789ABCDEF"

Function Documentation

int comparseqid ( const char *  qid,
ino_t *  n 
)

Definition at line 11 of file comparseqid.c.

{
const  char *p;

       *n=0;
       for ( ; *qid; qid++)
       {
              if (*qid == '.')     return (0);

              if ((p=strchr(hex, *qid)) == 0)    return (-1);
              *n= (*n << 4) + (p-hex);
       }
       return (-1);
}

Here is the caller graph for this function:


Variable Documentation

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

Definition at line 9 of file comparseqid.c.