Daylight v4.9
Release Date: 1 February 2008

Name

dt_ascii2binary - retrieve a binary string from its ascii representation

Generic Prototype

dt_ascii2binary(dt_String) => dt_Handle

C Prototype

#include "dt_smiles.h"

dt_Handle dt_ascii2binary(dt_Integer strlen, dt_String string)

FORTRAN Prototype

include 'dt_f_smiles.inc'

integer*4 dt_f_ascii2binary(string)

character*() string

Description

Allocates a new string object. The contents of the object is set to the binary representation of the ASCII input string. The ASCII input is converted back to binary using a 6-to-8 bit conversion, which reverses the dt_binary2ascii(3) function.

Return Value

Returns the handle of a new string object, or NULL_OB if an error is detected.

Related Topics

dt_alloc_string(3) dt_binary2ascii(3) dt_binary2asciilen(3) dt_setstringvalue(3) dt_stringvalue(3)