Posted in 1995
}From: Aaron Trewern <100322.2430@CompuServe.COM> }Subject: Variable parameters in C4gl }Date: 9 Jan 1995 15:14:31 GMT }X-Informix-List-Id: <news.10677> }Is it possible to create a C4gl function that will accept a variable number }of arguments, in a similar fashion to the way that the VARARGS works in C. } let l_str = str_cat("one", "two", "three") } let l_str = str_cat("one", "two") }I have the code for the function str_cat() below. The problem is that C4gl }complains at compile time error -4333 the second call has a different }argument count to the first. }Whilst the function can be called with varying arguments this must be done }in a separate module - not very useful. In Version 4.12 and later, the -z flag is supported by both fglpc and c4gl. In earlier versions, the underlying programs support -z, but the c4gl script didn't; you'd have to add support for it, and arrange to pass the -z flag to the fglc process. Yours, Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>
We use strictly necessary cookies to make this site work. With your consent we’d also use optional cookies for analytics and marketing. You can accept all, reject all, or choose. Read our Cookie Policy.