|
This is one of those "You can't get there from here" situations. RPG does
not support the ... part of the C parameter list. The ... means one or many
of any type variable.
______________________________________________
Eric N. Wilson
President
Doulos Software & Computer Services
2913 N Alder St
Tacoma WA 98407
----- Original Message -----
From: Hatzenbeler, Tim <thatzenbeler@clinitech.net>
To: <RPG400-L@midrange.com>
Sent: Wednesday, August 18, 1999 3:35 PM
Subject: strfmon() / *help*
> I'm trying to figure out how to prototype some c-functions....
>
> I have figured out a few, but I'm having problem figuring out this
one....I
> was wondering if anyone could help me..
>
> int strfmon(char *s, size_t maxsize, const char *format, ...);
>
> the example below has 4 parameters, but the syntax, has 3 definitions plus
> the ...., I need help.
>
> strfmon(string, 100, "%i", money); /* $1,234.56 */
> printf("%s\n", string);
>
> tim
>
> +---
> | This is the RPG/400 Mailing List!
> | To submit a new message, send your mail to RPG400-L@midrange.com.
> | To subscribe to this list send email to RPG400-L-SUB@midrange.com.
> | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator:
david@midrange.com
> +---
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.