Daylight v4.9
Release Date: 1 February 2008

Name

dt_binary2ascii - retrieve an ascii representation of a binary string

Generic Prototype

dt_binary2ascii(dt_String) => dt_Handle

C Prototype

#include "dt_smiles.h"

dt_Handle dt_binary2ascii(dt_Integer strlen, dt_String string)

FORTRAN Prototype

include 'dt_f_smiles.inc'

integer*4 dt_f_binary2ascii(string)

character*() string

Description

Allocates a new string object, the contents of which are set to the ASCII representation of the binary input string. That is, each 6 bits of binary data is encoded in an 8-bit ASCII character. The resulting ASCII representation uses only printable characters.

Return Value

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

Related Topics

dt_ascii2binary(3) dt_binary2asciilen(3) dt_setstringvalue(3) dt_stringvalue(3)