× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Scott

Thanks. You didnt't miss anything.
This worked
if (p_QDFFFINF->WDFFFIOA == 0x01) {
// whatever
}

I just was copying the IBM code on string compare but I now
understand that bytes are an atomic C data type hence no need
for fancy routines. (I feel a bit silly now)
I cant express enough my appreciation of your work,
all I have done is based on your examples.

Frank

date: Tue, 19 Aug 2014 11:38:37 -0500
from: Scott Klement <c400-l@xxxxxxxxxxxxxxxx>
subject: Re: [C400-L] Struggling with API QDFRTVFD

Maybe I'm not understanding, but... wouldn't it simply be like this?


Since WDFFFIOA isn't a pointer, it's just a byte, can't you just check
it directly?
Sorry... I haven't following this whole conversation, so I might be
missing something important.
-SK


I am converting it to C but I am stuck on converting this line of code
if QDFFFINF.WDFFFIOA = x'01'
I coded it in C as a strncmp but I get this compile error.

This is and example of the compile error I am getting.
217
218 17 | if (strncmp(p_QDFFFINF->WDFFFIOA, Attrib, 1) == 0)
218 17 + if ((_STRNCMPNULL((p_QDFFFINF->WDFFFIOA),(Attrib),(1)))
==0) {
*=SEVERE==========> a - CZM0280 Function argument assignment between
types
"const char*" and "char" is not allowed.
219 18 | NumFlds += 1;
220 | }
Frank

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.