From: "Mark S. Waterbury" <mark.s.waterbury@xxxxxxxxxxxxx>
To: C programming iSeries / AS400 <c400-l@xxxxxxxxxxxx>
Date: 05/10/2011 10:10 AM
Subject: Re: [C400-L] digitsof in a declaration
Sent by: c400-l-bounces+albertaa=us.ibm.com@xxxxxxxxxxxx
Hi, again, Erik:
Further searching of the InfoCenterI found this:
To use the decimal digitsof, and precisionof macros in your code,
you must specify
in your ILE C source.
(Did you even _try_ to search for an answer, e.g. in the InfoCenter,
before asking on the C/400 list?)
Mark S. Waterbury
> On 5/10/2011 10:46 AM, Erik Olsson wrote:
Anyone understand why I can't use the digitsof keyword in a--
declaration? It's based on a decimal field in a struct that is known
at compile time so I don't see the problem.
/* ... */
char periodstring[digitsof(myrec.DECFIELD) + 1];
I get this: "Integral constant expression with a value greater than
zero is required"
This is the C programming iSeries / AS400 (C400-L) mailing list
To post a message email: C400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: C400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.