Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!pyramid!infmx!aland
From: aland@infmx.UUCP (Dr. Scump)
Newsgroups: comp.databases
Subject: Re: missing library routine in Informix ESQL/C
Message-ID: <2126@infmx.UUCP>
Date: 16 Aug 89 03:38:36 GMT
References: <233@bahamut.fsc.com>
Reply-To: aland@infmx.UUCP (alan denney)
Distribution: na
Organization: INFORMIX Professional Services ("Peace thru Normalization")
Lines: 37

In article <233@bahamut.fsc.com> jim@bahamut.fsc.com (James O'Connor) writes:
>In the Informix 3.3 ALL-II library there was a function called dbprusing()
>which allowed you to format a double type variable according to the
>"print using" syntax used in ACE.  This was a very convenient way to get
>commas, dollar signs, and ()'s into C program output.
>
>I am now doing a project in Informix ESQL/C (version 2.10.00) and noticed
>that this function (or an equivalent) no longer exists.  Am I missing
>something?  Am I RTFM'ing wrong?

Probably not.  More like RTFOMTYPDH.  (Read the -- *other* manual that
you probably don't have  :-])

dbprusing() was part of ALL.  It is included in the ALL for ESQL/C
product (see p. 2-26 of the doc, if you have it), but this product
is not part of the mainstream product line and is not available for
every port.

>If this function is not a part of Informix ESQL/C, does anyone have a
>function which does this type of formatting?

Did you try dectoasc() ?  It will give you a printable string, and
you can specify the number of decimal places.  You just don't get
the full ACE formatting controls.

>Thanks for listening.
>James B. O'Connor			Work:	jim@tiamat.fsc.com

You're welcome.

--
    Alan S. Denney  @  Informix Software, Inc.    
         {pyramid|uunet}!infmx!aland                 "I want to live!
   --------------------------------------------       as an honest man,
    Disclaimer:  These opinions are mine alone.       to get all I deserve
    If I am caught or killed, the secretary           and to give all I can."
    will disavow any knowledge of my actions.             - S. Vega