smi2hex

Converts a SMILES string into hexadecimal code.

Syntax

expr  smi2hex(SMILES)
char  SMILES

Description

The string length for SMILES is <=2000.

The length of the hexadecimal expression that is returned is <=4000.

Example

 {
 char smi[2000];
 char hex[4000];
 
 smi= "CC";
 hex= smi2hex(smi);
 prompt(hex);            /* displays '4343' */
 }


Updated 19 May 1999. Copyright DataAspects Corp. 1998-1999