hex2smi

Converts a hexadecimal string into a SMILES.

Syntax

expr hex2smi(hexadecimal)
char          hexadecimal

Description

hexadecimal

specifies the expression to convert to SMILES for display.

The DayCGI often returns hexadecimal expressions of SMILES inside an HTML document. hex2smi() can be used to convert this expression into a SMILES for screen display or writing to a database.

Example

Convert a hexadecimal string returned from the DayCGI into a SMILES.

 {
 char smi[2000];
 char hex[4000];

 hex= "4343";
 smi= hex2smi(hex);
 status(smi);          /* SMILES 'CC' is displayed */
 }


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